lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Modassar Ather <>
Subject Difference in boolean query parsing. Solr-5.4.0 VS Solr.6.1.0
Date Thu, 04 Aug 2016 06:23:52 GMT

During migration from Solr-5.4.1 to Solr-6.1.0 I saw a difference in the
behavior of few of my boolean queries.
As per my current understanding the default operator comes in when there is
no operator present in between two terms.
Also both the ANDed terms are marked mandatory if not, any of them is
introduced as NOT. Same is the case with OR.
Please correct me if my understanding is wrong.

The below queries are parsed differently and causes a lot of difference in
search result.
The default operator used is AND and no mm is set.

*Query      : *fl:(network hardware AND device OR system)
*Solr.6.1.0 :* "+(+fl:network +fl:hardware fl:device fl:system)"
*Solr-5.4.0 : *"+(fl:network +fl:hardware +fl:device fl:system)"

*Query      : *fl:(network OR hardware device system)
*Solr.6.1.0 : *"+(fl:network fl:hardware +fl:device +fl:system)"
*Solr-5.4.0 : *"+(fl:network fl:hardware fl:device fl:system)"

*Query      : *fl:(network OR hardware AND device OR system)
*Solr.6.1.0 : *"+(fl:network +fl:hardware fl:device fl:system)"
*Solr-5.4.0 : *"+(fl:network +fl:hardware +fl:device fl:system)"

*Query      : *fl:(network AND hardware AND device OR system)"
*Solr.6.1.0 : *"+(+fl:network +fl:hardware fl:device fl:system)"
*Solr-5.4.0 : *"+(+fl:network +fl:hardware +fl:device fl:system)"

Please help me understand the difference in parsing and its effect on


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