Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fuse.js sometimes yields unintuitive results #91

Open
sophiamersmann opened this issue Oct 25, 2021 · 0 comments
Open

fuse.js sometimes yields unintuitive results #91

sophiamersmann opened this issue Oct 25, 2021 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@sophiamersmann
Copy link
Member

If the search list is ['Apple', 'Banana', 'Strawberry', 'Avocado', 'Blueberry', 'Cherry', 'Grapes'], then typing Apple leads to two results: Apple and Grapes. It's a bit weird in my opinion that Grapes shows up as a match (fuse.js uses the Levenshtein distance under the hood - from that perspective it makes sense but as a user I find it confusing)

Similar confusing behaviour happens, for example, when searching through Berlin's districts. Some examples:

Screenshot 2021-10-25 at 15 25 17

Screenshot 2021-10-25 at 15 26 06

Screenshot 2021-10-25 at 15 27 28

@sophiamersmann sophiamersmann added enhancement New feature or request question Further information is requested labels Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant