-
Notifications
You must be signed in to change notification settings - Fork 121
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
Recurring Boolean field in Redis json key value breaks document in index #668
Comments
Hello, I tried to find a solution with our chat app When dealing with recurring boolean fields in JSON arrays in Redis, you may encounter issues if trying to index and search them as TAG fields. Below is a recommended approach to properly index and search these boolean fields. { Steps to Create the Index and Search:
FT.CREATE myIndex ON JSON PREFIX 1 doc: SCHEMA $.ACompanies[*].APurchaseNeed AS APurchaseNeed TAG
JSON.SET doc:1 $ '{"ACompanies":[{"APurchaseNeed":true,"Name":"Company1"},{"APurchaseNeed":false,"Name":"Company2"},{"APurchaseNeed":true,"Name":"Company3"}]}'
FT.SEARCH myIndex "@APurchaseNeed:{true}" Important Points:
By following these steps, you should be able to index and search recurring boolean fields within JSON arrays without issues. For further details, refer to the Redis documentation on indexing JSON arrays. |
Seems this issue resolved in redis-om-python but not working with direct Redis queries. |
Hello again, Sorry for the delay, I think you may have better luck getting help with your question on our discord server. Here are the instructions to join and ask your question/get help to solve your issue: https://redis.io/learn/community/discord |
I'm not expecting any further activity, so I'm closing this ticket. |
Hi,
Page Redis-indexing document
There is an open issue in stack over flow regarding "Recurring Boolean field in Redis json key value breaks document in index". Is there any solution for this one. I am also facing same issue. Recently we implemented Redis-search in our spring boot application, but stuck with this limitation. Thank you in advance for your quick response.
Link: Recurring Boolean field in Redis json key value breaks document in index
The text was updated successfully, but these errors were encountered: