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 2003/10/03 04:28:15 UTC
DO NOT REPLY [Bug 22987] -
QueryParser not working on trivial query
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=22987>.
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=22987
QueryParser not working on trivial query
Eric.Isakson@sas.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From Eric.Isakson@sas.com 2003-10-03 02:28 -------
This is not a bug. SimpleAnalyzer is a subclass of LetterTokenizer which filters
out all non-letter characters:
/** Collects only characters which satisfy
* {@link Character#isLetter(char)}.*/
protected boolean isTokenChar(char c) {
return Character.isLetter(c);
}
The wildcard query with * is not processed by the analyzer and succeeds while
the non-wildcard query is processed as a term query and is processed by the
analyzer.
Try using a different analyzer that doesn't eliminate your query terms.
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org