query parsing

2006-03-22 Thread Robert Engels
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?

Re: query parsing

2006-03-22 Thread Daniel Naber
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 -

RE: query parsing

2006-03-22 Thread Robert Engels
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

RE: query parsing

2006-03-23 Thread Chris Hostetter
: 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

Query Parsing was Fwd: Lab - Esqueranto

2009-09-25 Thread Grant Ingersoll
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:

Re: Query Parsing was Fwd: Lab - Esqueranto

2009-09-25 Thread Peter Keegan
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

Re: Query Parsing was Fwd: Lab - Esqueranto

2009-09-25 Thread Earwin Burrfoot
, 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