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 7574] - [PATCH] StopFilter does not throw out parentheses
Date Tue, 10 Feb 2004 20:31:54 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=7574>.
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=7574

[PATCH] StopFilter does not throw out parentheses

halleux.jf@skynet.be changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|StopFilter does not throw   |[PATCH] StopFilter does not
                   |out parentheses             |throw out parentheses



------- Additional Comments From halleux.jf@skynet.be  2004-02-10 20:31 -------
We will try not to have to organize a party for the second birthday of this one.

Ok, the root cause for this is the QueryParser (once again), more specifically 
getBooleanQuery which is returning an empty query even if there are no clauses. 
When everything is a stopword, it could be the case that there are no clauses.

There are several possible fixes. Included in the attached is the less 
disruptive one I could think of. It is "only" breaking three tests in 
TestQueryParser.

However for the long term, I think that we should think of what it means to 
parse an empty query ("") and what should be the expected result (null,"", 
exception, ...)

Have fun,

Jean-Francois Halleux

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