lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arun Rangarajan <>
Subject Solr Boolean query help
Date Mon, 13 May 2013 20:11:27 GMT
I am trying to form a Solr query. Our documents have a multi-valued field
named tag_id. I want to get documents that either do not have tag_id 1 or
have both tag_id 1 and 2 i.e.
q=(tag_id:(1 AND 2) OR tag_id:(NOT 1))

This is not giving the desired results. The result is the same as that of
q=tag_id:(1 AND 2)
and the OR condition is ignored.
How would one do this query?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message