New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full-text search errors for prefix match #3014
Comments
@dranikpg can you kindly take a look? 🙏 |
@okimonhgb is it full text search? it's not supported. indeed I do not see that it is clearly specified in the documentation. |
@romange yes it is full text search. It works for exact word searches but seems doesn't support word prefixes. |
Unfortunately it won't be implemented in near future. |
Ok. I understand there is also no workaround? |
Sure :) |
Describe the bug
Fulltext search gives error if I want to search for words that match a given prefix:
FT.SEARCH idxe:content "@text:football*"
"ERR Query syntax error"
To Reproduce
Steps to reproduce the behavior:
$.text AS text TEXT
Expected behavior
for exact search I get no error:
FT.SEARCH idxe:content "@text:football"
My existing app. running on Redis doesn't get any error for prefix matching as expected:
https://redis.io/docs/latest/develop/interact/search-and-query/query/full-text/
...
Word prefix
You can also search for words that match a given prefix.
FT.SEARCH index "prefix*"
...
<<<
Screenshots
Error with dragonfly:
No error with Redis:
Environment (please complete the following information):
Reproducible Code Snippet
FT.CREATE indxe:content ON JSON PREFIX 1 contents: SCHEMA
$.text AS text TEXT
FT.SEARCH idxe:content "@text:football*"
Minimal code snippet to reproduce this bug
FT.SEARCH idxe:content "@text:football*"
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: