lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <morus.wal...@tanto.de>
Subject Re: queryparser: parsing boolean logic
Date Mon, 14 Jun 2004 06:53:21 GMT
Ben Pryor writes:
> Here is a follow-up to a previous message I posted, dealing with converting
> user-entered boolean logic into a Query. Why does the QueryParser construct
> the same query for the following two strings?
> 
>  
> 
> "apple AND orange OR pear AND grape"
> 
> "apple AND orange AND pear AND grape"
> 
>  
because query parser is broken :-(

I suggested a fix some time ago (look at 
http://issues.apache.org/bugzilla/show_bug.cgi?id=25820) but this didn't
get into the lucene sources so far.
Otis promised to look at it but I guess he didn't find time for this so far.

OTOH if your users don't enter the query as a text string, it's a bad idea
to use query parser anyway in most cases.

Morus

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


Mime
View raw message