Reputation: 137
I have a Solr query that looks up docs that have no values for a field/field does not exist AND fields that contain values from a given set (A OR B OR C).
What I came up with was (-field:[* TO *] OR field:(A OR B OR C)). Each subquery returns expected results but combining the two with an OR returns me nothing. Is there another way to express this?
Upvotes: 1
Views: 135
Reputation: 1301
According to this topic, you can add parenthesis and try something like:
(-field:[* TO *]) OR (field:(A OR B OR C))
Upvotes: 1