Using lucene 1.4.3, if I use the query
+cat AND -dog
it parses to
+cat -dog
and works correctly.
If I use
(+cat) AND (-dog)
it parses to
+(+cat) +(-dog)
and returns no results.
Is this a known issue?
On Mittwoch 22 März 2006 18:49, Robert Engels wrote:
> If I use
>
> (+cat) AND (-dog)
>
> it parses to
>
> +(+cat) +(-dog)
>
> and returns no results.
>
> Is this a known issue?
Basically yes. QueryParser is known to exhibit strange behavior when
combining +/- and AND/OR/NOT.
Regards
Daniel
-
apache.org
Subject: Re: query parsing
On Mittwoch 22 März 2006 18:49, Robert Engels wrote:
> If I use
>
> (+cat) AND (-dog)
>
> it parses to
>
> +(+cat) +(-dog)
>
> and returns no results.
>
> Is this a known issue?
Basically yes. QueryParser is known to exhibit stra
: Any suggestions on what to do then, as the following query exhibits the same
behavior
:
: (+cat) (-dog)
:
: Due to the implied AND. Removing the parenthesis allows it to work. It
: doesn't seem that adding parenthesis in this case should cause the query
: to fail???
Adding parens causes QueryPa
Has anyone looked/used Antlr for Query Parser capabilities? There was
some discussion over at Apache Labs that might bear discussing in
light of our new Query Parser contrib.
Begin forwarded message:
From: Tim Williams
Date: August 17, 2009 8:09:04 PM EDT
To: l...@labs.apache.org
Subject:
We're using Antlr for our query parsing. What I like about it:
- flexibility of separate lexer/parser and tree api
- excellent IDE for building/testing the grammar
However, the learning curve was quite long for me, although this was my
first real encounter with parsers.
Peter
On Fri, S
, Sep 25, 2009 at 19:17, Peter Keegan wrote:
> We're using Antlr for our query parsing. What I like about it:
> - flexibility of separate lexer/parser and tree api
> - excellent IDE for building/testing the grammar
> However, the learning curve was quite long for me, although th