Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: slightly mis-stated logic.


The fact that this works but similar queries using "OR" don't work is NOT a bug. It's just a byproduct of the way that boolean and MUST/SHOULD/MUST NOT query logic works. The query with "AND" works because "field1:value1" is the starting point for the query, then documents where field2 contains value2 are subtracted from that starting pointWith this structure, Solr is able to detect and fix the problem with the negative query in the second clause, but with the OR, it can't.