lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: bad queryparser bug
Date Fri, 02 Feb 2007 14:34:01 GMT

On Feb 1, 2007, at 5:03 PM, Peter Keegan wrote:
> OK, I see that I'm not the first to discover this behavior of  
> QueryParser.
> Can anyone vouch for the integrity of the PrecedenceQueryParser here:
> miscellaneous/src/java/org/apache/lucene/queryParser/precedence/

PrecedenceQueryParser was my tinkering attempt to make it more  
logically handle precedence.  I don't recall the exact issues that  
occur, though a JIRA issue was just filed with one:

    "NOT foo AND baz" is parsed as "-(+foo +baz)" instead of "-foo  
    (I'm setting parser.setDefaultOperator 
(PrecedenceQueryParser.AND_OPERATOR) but the issue applies otherwise  

I believe the test case points out some potential issues.  In other  
words, PrecedenceQueryParser is a work-in-progress that I no longer  
am working on myself.  Improvements to it welcome.  Query parsing is  
tricky business!


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message