lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roman Chyla <roman.ch...@gmail.com>
Subject Re: Query Parser OR AND and NOT
Date Mon, 15 Apr 2013 16:54:45 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message