-
Notifications
You must be signed in to change notification settings - Fork 517
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
Serious FT.GET bug #653
Comments
This should be fixed in master. In any event, I'm unsure I'd consider this a serious bug, because the document is actually stored as a plain hash under the document name (unless the |
how's this not a serious issue? the index name is ignored. |
Because you shouldn't have a document with the same name in multiple indexes anyway. Anyway, this has been fixed in master. I just didn't want to let off the impression that you can have a "doc1" in idx1 and a "doc1" in idx2 |
ok, now i get it. you look at redisearch as a way to index existing redis documents (which have unique keys), where i looked at it as a general purpose database where the key is composed of the index+docId. so ft.add idx1 doc1 and ft.add idx2 doc1 simply make the same doc1 available on both indexes. |
So this is actually a point of confusion. As it stands right now, it’s “both”, unfortunately with the restrictions of both. What I mean is that we:
- Recommend to only use the FT.* commands for accessing the keys (so if you just do HSET, the newly modified data does not get reindexed)
- Be aware that all “documents” share a single keyspace; so there is no namespace isolation within different indexes.
Now in the long term, we’d like a scenario where doing HSET will cause a reindex of the document, but it’ll be a while before this becomes available and stable within redisearch.
… On Apr 17, 2019, at 4:31 PM, mluggy ***@***.***> wrote:
ok, now i get it. you look at redisearch as a way to index existing redis documents (which have unique keys), where i looked at it as a general purpose database where the key is composed of the index+docId.
so ft.add idx1 doc1 and ft.add idx2 doc1 simply make the same doc1 available on both indexes.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub <#653 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AADKOUOBLCIPJSXCN2LKEPTPQ6CLLANCNFSM4HFDSCFQ>.
|
yea, i wasn't aware. as mentioned I'm not handling any redis documents directly, only through redisearch. this started a journey that supposedly do this: https://twitter.com/mluggy/status/1057994312800198656 |
redis 5.0.4 and redisearch 1.4.6. FT.GET ignores index name.
The text was updated successfully, but these errors were encountered: