1

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?

K.He
  • 137
  • 1
  • 8

1 Answers1

1

According to this topic, you can add parenthesis and try something like:

(-field:[* TO *]) OR (field:(A OR B OR C))
Community
  • 1
  • 1
alexf
  • 1,303
  • 9
  • 20