Yeah, purely negative sub-queries have had problems, so rewrite:

fq = (access:Allow*) OR (-access:*)

as

fq = (access:Allow*) OR (*:* -access:*)

-- Jack Krupansky

-----Original Message----- From: Thomas Kurz
Sent: Thursday, November 28, 2013 10:34 AM
To: solr-user@lucene.apache.org
Subject: problems with boolean query

Hi all!

I have a question regarding boolean queries. What I want to reach:

Return all documents where string-field „access" has value ‚allow*‘ or is not set.

My query:
fq = (access:Allow*) OR (-access:*)

But I got only the results where the field has value ‚allow*‘.

I am using solr 4.3.1 with the edismax query parser.

I am looking forward to get some hints, why the query might be failing.

Best regards and many thanks!
Thomas


--
Thomas Kurz
Forschung & Entwicklung / KMT

Salzburg Research Forschungsgesellschaft mbH
Jakob-Haringer-Straße 5/3 | 5020 Salzburg, Austria
T: +43.662.2288-253 | F: -222
thomas.k...@salzburgresearch.at
http://www.salzburgresearch.at



Reply via email to