Re: solr-query with NOT and OR operator

2014-02-11 Thread Johannes Siegert
Hi Jack, thanks! fq=((*:* -(field1:value1)))+OR+(field2:value2). This is the solution. Johannes Am 11.02.2014 17:22, schrieb Jack Krupansky: With so many parentheses in there, I wonder what you are really trying to do Try expressing your query in simple English first so that we can unde

Re: solr-query with NOT and OR operator

2014-02-11 Thread Erick Erickson
Solr/Lucene is not strictly Boolean logic, this trips up a lot of people. Excellent blog on the subject here: http://searchhub.org/dev/2011/12/28/why-not-and-or-and-not/ Best, Erick On Tue, Feb 11, 2014 at 8:22 AM, Jack Krupansky wrote: > With so many parentheses in there, I wonder what you ar

Re: solr-query with NOT and OR operator

2014-02-11 Thread Jack Krupansky
With so many parentheses in there, I wonder what you are really trying to do Try expressing your query in simple English first so that we can understand your goal. But generally, a purely negative nested query must have a *:* term to apply the exclusion against: fq=((*:* -(field1:value1)

Re: solr-query with NOT and OR operator

2014-02-11 Thread Mikhail Khludnev
http://wiki.apache.org/solr/CommonQueryParameters#debugQuery and http://wiki.apache.org/solr/CommonQueryParameters#explainOther usually help so much On Tue, Feb 11, 2014 at 7:57 PM, Johannes Siegert < johannes.sieg...@marktjagd.de> wrote: > Hi, > > my solr-request contains the following filter-q