Closed Neeraj-Ghodla closed 11 months ago
Can we add fuzzy search support in Full-Text search?
We could modify the match function to something like
albumRepository .search() .where('title') .match('buterfly', { fuzzy: true, levenshteinDistance: 1 })
NB: Typo on buterly is delibrate
This is a good idea. I'll mark it as an enhancement.
@guyroyse I've created a PR to add support for fuzzy matching.
how can i fuzzy search in all fields ? a query like this FT.SEARCH index "%word%"
FT.SEARCH index "%word%"
If you want to do more advanced searches you can always use the . searchRaw method. A simple example is in the README.
. searchRaw
Can we add fuzzy search support in Full-Text search?
We could modify the match function to something like
NB: Typo on buterly is delibrate