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 2004/02/10 21:31:54 UTC
DO NOT REPLY [Bug 7574] -
[PATCH] StopFilter does not throw out parentheses
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