You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2016/09/26 18:09:47 UTC

[Solr Wiki] Trivial Update of "NegativeQueryProblems" by ShawnHeisey

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "NegativeQueryProblems" page has been changed by ShawnHeisey:
https://wiki.apache.org/solr/NegativeQueryProblems?action=diff&rev1=3&rev2=4

Comment:
clean up first sentence wording.

  These queries will not work as expected:
  
  '''-field1:value1 OR field2:value2'''
+ 
  '''field2:value2 OR -field1:value1'''
  
  When there are multiple clauses in the input query, Solr's negative query detection does not work, so the purely negative clauses in these queries cannot be automatically fixed.  If these queries are rewritten as the following, adding a starting point of "all documents" to the negative clause, then it works as expected: