[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lucene-dev
Subject:    Weird BooleanQuery behavior
From:       Cheolgoo Kang <appler () gmail ! com>
Date:       2005-02-08 15:07:14
Message-ID: 48b70849050208070776561587 () mail ! gmail ! com
[Download RAW message or body]

Hi all,

I'm getting some weird results using BooleanQuery.
Let's see an example. Here's a simple OR-connected query.

T:files T:deleting C:thanks C:exists

The query above hits 1 document. But following *same* query only with
parenthesis results nothing.

(T:files T:deleting) (C:thanks C:exists)

Another combinations of MUST and SHOULD.

"T:files T:deleting +C:production +C:optimize" hits 1 document.
"(T:files T:deleting) (+C:production +C:optimize)" hits 1 document.

Isn't it weird? Is it an expected behavior?

-- 
Cheolgoo, Kang

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic