Skip to content

fuse.js sometimes yields unintuitive results #91

@sophiamersmann

Description

@sophiamersmann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions