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 vitaly bulgakov <bu...@yahoo.com> on 2016/02/26 14:27:45 UTC
Is it different? q=(field1:value1 OR field2:value2) and
q=field1:value1 OR field2:value2
Is there a difference when we put query in brackets?
--
View this message in context: http://lucene.472066.n3.nabble.com/Is-it-different-q-field1-value1-OR-field2-value2-and-q-field1-value1-OR-field2-value2-tp4259976.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Is it different? q=(field1:value1 OR field2:value2) and
q=field1:value1 OR field2:value2
Posted by John Blythe <jo...@curvolabs.com>.
not that i'm aware of. i think you could also simply have q=field1:value
field2:value in which the OR is implied
--
*John Blythe*
Product Manager & Lead Developer
251.605.3071 | john@curvolabs.com
www.curvolabs.com
58 Adams Ave
Evansville, IN 47713
On Fri, Feb 26, 2016 at 8:31 AM, Aurélien MAZOYER <
aurelien.mazoyer@francelabs.com> wrote:
> Hi,
>
> I think both the two queries are rewrited to the same query. You can use
> the debugQuery=on parameter to see how the query is rewrited and then
> compare if you get the same result for each query.
>
> Regards,
>
> Aurélien
>
> Le 26/02/2016 14:27, vitaly bulgakov a écrit :
>
>> Is there a difference when we put query in brackets?
>>
>>
>>
>> --
>> View this message in context:
>> http://lucene.472066.n3.nabble.com/Is-it-different-q-field1-value1-OR-field2-value2-and-q-field1-value1-OR-field2-value2-tp4259976.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>
>
Re: Is it different? q=(field1:value1 OR field2:value2) and
q=field1:value1 OR field2:value2
Posted by Aurélien MAZOYER <au...@francelabs.com>.
Hi,
I think both the two queries are rewrited to the same query. You can use
the debugQuery=on parameter to see how the query is rewrited and then
compare if you get the same result for each query.
Regards,
Aurélien
Le 26/02/2016 14:27, vitaly bulgakov a écrit :
> Is there a difference when we put query in brackets?
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Is-it-different-q-field1-value1-OR-field2-value2-and-q-field1-value1-OR-field2-value2-tp4259976.html
> Sent from the Solr - User mailing list archive at Nabble.com.