Redisearch: FT.SEARCH with fuzzy

Created on 28 Dec 2017  路  4Comments  路  Source: RediSearch/RediSearch

Hi everyone,

is there a way to use FT.SEARCH with kind of fuzzy search?
My first try was to use autocomplete, but this doesnt work for me, because i need to have duplicate values with different payloads.

At the moment my search looks like that:
'FT.SEARCH', [ 'searchlist', searchstring + '*', 'SORTBY', 'someAttribute', 'DESC' ]

I thank you a lot for every help!

enhancement

Most helpful comment

Hi. Fuzzy search is supported only on completion. But since we do support it in the actual algorithm, it's just an API detail to add this. We'll try to get to it soon!

All 4 comments

Hi. Fuzzy search is supported only on completion. But since we do support it in the actual algorithm, it's just an API detail to add this. We'll try to get to it soon!

Do you think it will come in the closer next time?
That would be absolutly great!

Thank you for your great help!

I'll put it in the TODO since it's not a lot of work, the algorithm actually exists. I mostly need a way to express it in the query syntax.

Suggestions are welcome! Ideas:

*fuzzy* 
%fuzzy%
~fuzzy~

I think the percentage is the best option since it doesn't have other meanings in the syntax. Down side: it doesn't mean what it means in SQL LIKE queries, which I'm certain will cause confusion.

added in 1.2.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhangkyou picture zhangkyou  路  4Comments

mnunberg picture mnunberg  路  5Comments

yansuihehe picture yansuihehe  路  5Comments

chuckyz picture chuckyz  路  9Comments

tw-bert picture tw-bert  路  7Comments