krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
18.1k stars 766 forks source link

Need to document tokenSeparator #299

Closed ziadrida closed 4 years ago

ziadrida commented 5 years ago

Add tokenSeparator to the list of options.

I tried a search of Notebook in a keywords of: "Notebook/Laptop" and got no match also it won't match "Notebook,Laptop", but it will match "Notebook, Laptop". !

So it is important to document this feature so users don't have to guess!

(Settings about my search options above): var options = { shouldSort: true, tokenize: true, matchAllTokens: true, includeScore: true, includeMatches: true, threshold: 0, location: 0, distance: 0, maxPatternLength: 100, minMatchCharLength: 2, keys: [ "keywords", "category_name" ] };

github-actions[bot] commented 4 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days