You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2001/12/17 14:57:37 UTC
DO NOT REPLY [Bug 5456] New: -
logic error in QueryParser and in BooleanQuery !
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5456>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5456
logic error in QueryParser and in BooleanQuery !
Summary: logic error in QueryParser and in BooleanQuery !
Product: Lucene
Version: 1.0.2
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Critical
Priority: Other
Component: QueryParser
AssignedTo: lucene-dev@jakarta.apache.org
ReportedBy: bitl@mail.ru
I think there's "ideo-logic" error in QueryParser:
(and in BooleanQuery!)
when I search for smth. like "love OR NOT onion"
I receive the same result as I search for "love AND NOT onion".
IMHO it's wrong.
Let we have 4 docs:
doc1: "Love is life"
doc2: "Java is pretty nice language"
doc3: "C++ is powerful, but unsafe"
doc4: "Onion and love sometimes are not compatoble"
So, if search for "love OR NOT onion"
result must be: doc1, doc2, doc3.
(_everything_ where the word "onion" isn't present, because we say "OR")
but, we have the same result as in case of search for:
"love AND NOT onion":
result: doc1.
So, I have created own parser, using BooleanQuery, that would help
me, but unfortunatelly it wouldn't.
Please ! Fix it ASAYK !
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>