Hi, let’s say I have an index with a TAG field. My goal is to search for documents that have the “food” tag OR that have BOTH the “drink” and “alcoholic” tags.
I can’t find a way to express this in a single query, is it possible?
Take a look at the SET data structure. You can create a set for “food”, “drink” and “alcoholic” And then query them to get the results you want. Here are some indeas:
Thank you for your answer, but I don’t think that’s what I want. I’m using Redisearch and those kind of sets are built automatically for each tag, it seems stupid to do manually almost the same thing. If it is possible, I would like to achieve the result only with one RediSearch tag query.
Thank you for your reply, I hope you can help me futher.
If this works, you are my saviour! I’ve already tried similar queries, but maybe I was missing some parenthesis. I will try this ASAP and let you know, thanks!