Yes, the parentheses are needed to prioritize the operator precedence (do
the ANDs and then OR those results.) And, add a space after both left
parentheses to account for the edismax bug.
(https://issues.apache.org/jira/browse/SOLR-3377)
-- Jack Krupansky
-----Original Message-----
From: András Bártházi
Sent: Tuesday, May 15, 2012 6:50 AM
To: solr-user@lucene.apache.org
Subject: Re: simple query help
Hi,
You should use parantheses, have you tried that?
q=(skcode:2021051 and flength:368.0) or (skcode:2021049 and
ent_no:1040970907)
http://robotlibrarian.billdueber.com/solr-and-boolean-operators/
Bye,
Andras
2012/5/15 Peter Kirk <p...@alpha-solutions.dk>
Hi
Can someone please give me some help with a simple query.
If I search
q=skcode:2021051 and flength:368.0
I get 1 document returned (doc A)
If I search
q=skcode:2021049 and ent_no:1040970907
I get 1 document returned (doc B)
But if I search
q=skcode:2021051 and flength:368.0 or skcode:2021049 and ent_no:1040970907
I get no documents returned.
Shouldn't I get both docA and docB?
Thanks,
Peter