lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Query Parser OR AND and NOT
Date Tue, 16 Apr 2013 11:42:39 GMT
The query language is NOT pure boolean. Hoss wrote this up:
http://searchhub.org/2011/12/28/why-not-and-or-and-not/

Best
Erick

On Mon, Apr 15, 2013 at 12:54 PM, Roman Chyla <roman.chyla@gmail.com> wrote:
> Oh, sorry, I have assumed lucene query parser. I think SOLR qp must be
> different then, because for me it works as expected (our qp parser is
> identical with lucene in the way it treats modifiers +/- and operators
> AND/OR/NOT -- NOT must be joining two clauses: a NOT b, the first cannot be
> negative, as Chris points out; the modifier however can be first - but it
> cannot be alone, there must be at least one positive clause). Otherwise,
> -field:x it is changed into field:x
>
> http://labs.adsabs.harvard.edu/adsabs/search/?q=%28*+-abstract%3Ablack%29+AND+abstract%3Ahole*&db_key=ASTRONOMY&sort_type=DATE
> http://labs.adsabs.harvard.edu/adsabs/search/?q=%28-abstract%3Ablack%29+AND+abstract%3Ahole*&db_key=ASTRONOMY&sort_type=DATE
>
> roman
>
>
> On Mon, Apr 15, 2013 at 12:25 PM, Peter Schütt <newsgroups@pstt.de> wrote:
>
>> Hallo,
>>
>>
>> Roman Chyla <roman.chyla@gmail.com> wrote in
>> news:CAEN8dyWjRL+E3B0HpC9NTLmJTrKASRQLVKZhKqXopMLHHFnJQQ@mail.gmail.com:
>>
>> > should be: -city:H* OR zip:30*
>> >
>> -city:H* OR zip:30*               numFound:2520
>>
>> gives the same wrong result.
>>
>>
>> Another Idea?
>>
>> Ciao
>>   Peter Schütt
>>
>>
>>

Mime
View raw message