lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25820] - [PATCH] QueryParser not handling queries containing AND and OR
Date Tue, 02 Mar 2004 14:48:23 GMT
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=25820>.
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=25820

[PATCH] QueryParser not handling queries containing AND and OR

otis@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[PATCH] QueryParser not     |[PATCH] QueryParser not
                   |handling queries containing |handling queries containing
                   |AND and OR correctly        |AND and OR



------- Additional Comments From otis@apache.org  2004-03-02 14:48 -------
How about this.
It seems to me that the optimal way to approach this problem at this point is to
change the patch to return an empty Query instead of a null one, after all. 
This way we get everything that Doug mentioned (no need to test results, and we
remain compatible with previous versions).  This way we also fix the bug that
you identified in the first place, which is incorrect parsing of AND/OR query
expressions, and we also get the solution to only prohibited terms being present
in the query.

What we do not get is the way of figuring out why a returned Query is empty...
and you (Morus) even say that blank Queries will raise parser exceptions.

So I suggest we patch QueryParser.jj without this last bit for now, and add
support for that later.

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


Mime
View raw message