-
Notifications
You must be signed in to change notification settings - Fork 991
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 :) |
@romange |
We just discussed this internally within the team - we need to learn the domain and devise a plan. I personally have never developed patricia tree nor the suffix trie but based on what you write it seems that the Patricia tree will will hit the limit very soon. Are there any 3rd party libraries that provide suffix trie implementation out of the box? |
Also there are suffix arrays. Do they help with this? |
All of my conclusions will be based on comparison with Redis. As per my understanding, We don't need to choose between Patricia Tree or Suffix Trie but rather both implementations need to be present. (If the I need to do some more research and comparison between suffix tree and suffix array, and find a suitable implementation. I previously extended a Patricia Tree implementation and I am familiar with full text indexing domain so I would like to be included if possible in your discussions. |
|
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: