krisk / Fuse

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

exact search #572

Closed zfranco55 closed 2 years ago

zfranco55 commented 2 years ago

exact search in sync with typing, dynamically increasing minMatchCharLength. example: typing 'ab' search all words that include 'ab, typing 'abc' all words that include 'abc' ...

danisztls commented 2 years ago

I had similar issues and was able to generate exact matches in the way that you are describing at lite-search.

In summary if you search for "foo bar" Fuse will search for "foo" "bar" and return non-nonsensical matches. What I did is force it to search for "foo bar" and not return "f", "fo", "foo" as matches.

github-actions[bot] commented 2 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