Skip to content

Fuzzy searching? #155

@thomthom

Description

@thomthom

I was wondering if there was any interesting in allowing fuzzy search?

Some of the background for this is that I mantain a C API where there's a lot of prefixes to keep things unique (product initials + "class" name + function name).

Right now it appear that the search works only on the start of each object being searched.

For example:
image

Compare to if I just type "editing":
image

I'm very fond of how Sublime Text (and many other editors like VSCode etc) let you search. In the example above, if I typed "tee" it would value the upper case letters in the symbols so that "TextEditingEvents" ranked high.

I have in the past experimented with fts_fuzzy_match for such functionality for some projects I'm working on. (https://github.com/forrestthewoods/lib_fts/) It's been working rather well.

More details on the logic here:
https://www.forrestthewoods.com/blog/reverse_engineering_sublime_texts_fuzzy_match/

Any interest in this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    TODO

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions