flexsearch icon indicating copy to clipboard operation
flexsearch copied to clipboard

Warning to new users: FlexSearch has no fuzzy search

Open rmdashrfv opened this issue 1 year ago • 2 comments

Just so people are aware: FlexSearch has no fuzzy search.

This is an extension of 118, which was opened 5 years ago at the time of this issue.

This is confusing to people for two main reasons:

  1. The benchmarks are comparing FlexSearch to libraries that do fuzzy search (which also would explain at least some of the performance gap).
  2. The library is tagged with both "fuzzy" and "fuzzy-search" as tags. Meaning that people who search for libraries that do fuzzy search will accidentally end up here, unaware that it's not what they are looking for.

It probably isn't going to happen given that it's already been 5 years and #118 is the most upvoted issue, so new users need to adjust expectations accordingly. I can do a PR for the readme too, because that would help a lot of people and save a lot of confusion.

rmdashrfv avatar Oct 06 '24 01:10 rmdashrfv

I started trying to integrate flexsearch yesterday (certified newbie), but wouldn't if I knew there is no fuzzy search. Thanks for the heads up!

Slightly related: the readme needs more palate for human consumption. The library seems awesome, so it deserves the love. I can open a separate issue if there is a need to explain why.

ccfontes avatar Oct 07 '24 03:10 ccfontes

Does Flexsearch support Partial Search vs Phonetic Search with Document? Or just for Index?

thuhang2510 avatar Oct 14 '24 10:10 thuhang2510

5 hours wasted! Thanks for warning.

arashi-dev avatar Feb 18 '25 06:02 arashi-dev

Fuzzy-Search is provided since the very first version. Please read documentation more carefully, especially when claim a warning which is just not true. I've added a new section in documentation which will cover this topic: https://github.com/nextapps-de/flexsearch/tree/v0.8-preview?tab=readme-ov-file#fuzzy-search

ts-thomas avatar Mar 06 '25 10:03 ts-thomas

All libraries from the performance test also compared by fuzziness: https://nextapps-de.github.io/flexsearch/match.html

ts-thomas avatar Mar 14 '25 15:03 ts-thomas