lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Required operator (+) is being ignored when using default conjunction operator AND
Date Wed, 01 Apr 2020 17:08:41 GMT

: Using solr 8.3.0 it seems like required operator isn't functioning properly
: when default conjunction operator is AND.

You're mixing the "prefix operators" with the "infix operators" which is 
always a recipe for disaster.  

The use of q.op=AND vs q.op=OR in these examples only 
complicates the issue because q.op isn't really overriding any sort of implicit 
"infix operator" when clauses exist w/o an infix operator between them, it 
is overriding the implicit MUST/SHOULD/MUST_NOT given to each clause as 
parsed ... but in general setting q.op-AND really only makes sense when 
you expect/intend to only be using "infix operators"

This write up i did several years ago is still very accurate -- the bottom 
line is you REALLY don't want to mix infix and prefix operators..

...because the results of mixing them really only "make sense" given the 
context that the parser goes left to right (ie: no precedence) and has 
no explicit "prefix" operator syntax for "SHOULD"


View raw message