flexsearch
flexsearch copied to clipboard
return one if exact match?
heya thanks for the great library.
consider the following scenario:
titles to search:
- title
- title1
currently, if I search for titl I get both. Also If I search for title I get both, but in this instance there is an exact match.
Is it possible to tweak the settings to return only the exact match, if found?
I can obviously add a logic outside of the search, but I was wondering if there is a flexsearch way of doing this.
Thanks
Just use tokenize: "strict" within your index options. Also there is a new preset on Charset.LatinExact which will switch to case-sensitive matching.