Difference between AND OR IN FQ

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Difference between AND OR IN FQ

swap
what is difference between
http://xxx/solr/core/select?q=*:*&fq=((event_name:"add+to+cart") OR
(event_name:"product+viewed"))

http://xxxxx/solr/core/select?q=*:*&fq=((event_name:"add+to+cart") AND
(event_name:"product+viewed"))

document structure
{
 "event_name":"add to cart",
 "email": "xxxx"
}




--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
Reply | Threaded
Open this post in threaded view
|

Re: Difference between AND OR IN FQ

Erick Erickson
One has an "AND" and one has an "OR"?

You obviously have some kind of issue or anomaly, but you haven't told
us what behavior _is_, so we have no idea how to answer.

try running your query through with &debug=query. Also be aware that
by default queries do NOT implement boolean logic, see:

https://lucidworks.com/2011/12/28/why-not-and-or-and-not/

Best,
Erick

On Wed, Dec 19, 2018 at 8:54 PM swap <[hidden email]> wrote:

>
> what is difference between
> http://xxx/solr/core/select?q=*:*&fq=((event_name:"add+to+cart") OR
> (event_name:"product+viewed"))
>
> http://xxxxx/solr/core/select?q=*:*&fq=((event_name:"add+to+cart") AND
> (event_name:"product+viewed"))
>
> document structure
> {
>  "event_name":"add to cart",
>  "email": "xxxx"
> }
>
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html