lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Renaud Waldura" <renaud.wald...@library.ucsf.edu>
Subject RE: BooleanQuery
Date Thu, 07 Dec 2006 01:37:26 GMT
Read my own complaints about QueryParser here:

http://marc.theaimsgroup.com/?l=lucene-user&m=116069469827270&w=2

You're in for a surprise. As alluded by Erick, the stock QP doesn't quite do
what one (legitimately IMO) expects.

--Renaud
 

-----Original Message-----
From: Erick Erickson [mailto:erickerickson@gmail.com] 
Sent: Wednesday, December 06, 2006 11:56 AM
To: java-user@lucene.apache.org
Subject: Re: BooleanQuery

These are not boolean operators, which is often confusing. See the thread

"*Another problem with the QueryParser*"

for an exposition by Chris about how these operate. This may change what you
expect to come back from the parser... If it doesn't, then maybe someone
else can chime in <G>...

Erick

On 12/6/06, Marcelo Ohashi <ohashi@summa-tech.com> wrote:
>
> Hi,
>
>         Does anyone know if lucene can handle complex boolean queries 
> like the following ones?
>
> 1. T: (A OR NOT B)
> 2. (T:A AND NOT T:B) OR NOT T:C
>
>         Cause I figured out in some tests that the results were not 
> really what I expected.
>
> Thanks in advance,
>
> _____________
> Marcelo Ohashi
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>



---------------------------------------------------------------------
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