You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Aleš Gregor <al...@gmail.com> on 2016/07/08 13:37:18 UTC
SOLR 6: edismax search query with OR operator does not work as expected
Hello,
after migrating my index from Solr 4.3 to Solr 6 I noticed that the OR
logical operator in search query no longer works as expected.
On Solr 4.3 query - Blue OR Red - brings all documents with Blue or Red or
both tokens found.
On Solr 6 the same query only brings documents with both the tokens, Blue
and Red.
I see some difference in the debug of the query but I cannot make much
sense out of it.
Was there any change between Solr 4 and 6 that would cause this?
Thanks
Ales Gregor
Re: SOLR 6: edismax search query with OR operator does not work as expected
Posted by Erick Erickson <er...@gmail.com>.
Also take a look at: https://issues.apache.org/jira/browse/SOLR-8812
On Fri, Jul 8, 2016 at 7:02 AM, Jamal, Sarfaraz
<Sa...@verizonwireless.com.invalid> wrote:
> This sounds like it might be of help -
>
> < solrQueryParser defaultOperator="AND"/>
>
> You can change it from and to or.
>
> (If I understood you) -
>
> Sas
>
>
> -----Original Message-----
> From: Aleš Gregor [mailto:algalg@gmail.com]
> Sent: Friday, July 8, 2016 9:37 AM
> To: solr-user@lucene.apache.org
> Subject: SOLR 6: edismax search query with OR operator does not work as expected
>
> Hello,
>
> after migrating my index from Solr 4.3 to Solr 6 I noticed that the OR logical operator in search query no longer works as expected.
>
> On Solr 4.3 query - Blue OR Red - brings all documents with Blue or Red or both tokens found.
> On Solr 6 the same query only brings documents with both the tokens, Blue and Red.
>
> I see some difference in the debug of the query but I cannot make much sense out of it.
>
> Was there any change between Solr 4 and 6 that would cause this?
>
> Thanks
> Ales Gregor
RE: SOLR 6: edismax search query with OR operator does not work as
expected
Posted by "Jamal, Sarfaraz" <Sa...@VerizonWireless.com.INVALID>.
This sounds like it might be of help -
< solrQueryParser defaultOperator="AND"/>
You can change it from and to or.
(If I understood you) -
Sas
-----Original Message-----
From: Aleš Gregor [mailto:algalg@gmail.com]
Sent: Friday, July 8, 2016 9:37 AM
To: solr-user@lucene.apache.org
Subject: SOLR 6: edismax search query with OR operator does not work as expected
Hello,
after migrating my index from Solr 4.3 to Solr 6 I noticed that the OR logical operator in search query no longer works as expected.
On Solr 4.3 query - Blue OR Red - brings all documents with Blue or Red or both tokens found.
On Solr 6 the same query only brings documents with both the tokens, Blue and Red.
I see some difference in the debug of the query but I cannot make much sense out of it.
Was there any change between Solr 4 and 6 that would cause this?
Thanks
Ales Gregor