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
Clarification on non-indexed attributes #4404
Comments
Hi @shohamazon.
However, to perform operations like sorting, the fields need to be part of the scehma:
This allows you to run queries on the data, using the And yes, you can combine these 3 options. Hope it helps :) 🇮🇱 |
Thank you so much! That helped a lot. So the benefit of having So what is the difference between the example you gave and this one: How's the field different in a way that it wont be ignored? Thank you! I really appreciate it :) 🇮🇱 |
Yes, you got it right When using as mentioned in the documentation:
|
Thank you, I hope it's ok to ask more questions:) I created a new index and I am not sure why the behavior is like that.
Why adding the sortable caused this behavior? I would assume that this should have happened if I didn't add |
Of course :) Seems like you caught a bug. ⭐ To better assist you, could you please provide more details about the specific use case you're working on? |
Oh I see now, Maybe it would be a good idea to change the documentation? I still find it a bit confusing, maybe a better explanation on what it means when a field is being ignored. By the way, I noticed that the bug is only for a single field schema, for any different schema - I guess it is working fine. Thank you so much !🙂 |
I agree that this behavior is odd and not well-documented. Regarding the additional potential bug you mentioned, I assume you are relating to a case where the schema includes additional fields that don't have the NOINDEX attribute. Note that the default and correct behavior is to notify the module on every hash event (new entry, update, or delete). When running
|
Thank you so much, you helped me a lot. |
I linked the ticket to this issue so I believe that the PR will appear here |
This issue is stale because it has been open for 60 days with no activity. |
Hello:)
I have been exploring the
FT.CREATE
command and I would like some clarifications regarding the non-indexed fields.As mentioned in the redis documentation - If an attribute has
NOINDEX
and doesn't haveSORTABLE
, it will just be ignored by the index.What does this mean? Because when I created a non-indexed field, I could find it when I ran
FT.INFO
.Is the attribute really ignored as mentioned?
And can I create an attribute that has
SORTABLE
,UNF
andNOINDEX
?Thank you:)
The text was updated successfully, but these errors were encountered: