lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <markrmil...@gmail.com>
Subject Re: bad queryparser bug
Date Thu, 01 Feb 2007 22:47:40 GMT
This is a ton of discussion on this if you search the lucene user list 
(QueryParser and precendence and the 'binary' operators). I have seen 
many mentions of the precedence parser still having open issues but no 
mention of what those issues are.

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:
>
> http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/miscellaneous/src/java/org/apache/lucene/queryParser/precedence/

>
>
> Thanks,
> Peter
>
> On 2/1/07, Peter Keegan <peterlkeegan@gmail.com> wrote:
>>
>> Correction:
>>
>> The query parser produces the correct query with the parenthesis.
>> But, I'm still looking for a fix for this. I could use some advice on
>> where to look in QueryParser to fix this.
>>
>> Thanks,
>> Peter
>>
>> On 2/1/07, Peter Keegan <peterlkeegan@gmail.com> wrote:
>> >
>> > I have discovered a serious bug in QueryParser. The following query:
>> > contents:sales && contents:marketing || contents:industrial &&
>> > contents:sales
>> >
>> > is parsed as:
>> > +contents:sales +contents:marketing +contents:industrial 
>> +contents:sales
>> >
>> >
>> > The same parsed query occurs even with parenthesis:
>> > (contents:sales && contents:marketing) || (contents:industrial &&
>> > contents:sales)
>> >
>> > Is there any way around this bug?
>> >
>> > Thanks,
>> > Peter
>> >
>> >
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message