:   What is the default operator precedence between AND and OR in SOLR?  For
: example if I type a query "A OR B AND C", will it be treated as "(A OR B)
: AND C"  OR "A OR (B AND C)"

Strictly speaking: neither.

AND and OR are just aliases for setting the MUST and SHOULD properties of 
the clauses on both sides, when used like your examples the AND "wins" 
(i believe) because it comes second.  "C AND B OR A" would have differnet 
results.

The wiki is under going maintence right now, but the google cache of this 
page has some more info...

http://wiki.apache.org/jakarta-lucene/BooleanQuerySyntax
http://www.google.com/search?hl=en&safe=off&q=http%3A%2F%2Fwiki.apache.org%2Fjakarta-lucene%2FBooleanQuerySyntax&btnG=Search



-Hoss

Reply via email to