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=16167>. 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=16167 Problem searching with WildCards and quotes [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 2003-01-19 13:54 ------- Again marking as INVALID. Several points:- Your code is not compilable as you've put it here - be sure to provide a *working* example of a problem. Just providing the TokenStream implementation is not enough to see the issue. What is the document you're indexing? Please provide a standalone complete example.- Your tokenizer is simply tokenizing the *entire* string its fed, and not breaking it. Here's an example: TokenStream ts = new TestTokenizer(new StringReader("12abc xyz foo bar")); while (true) { Token token = ts.next(); if (token == null) { break; } System.out.print("[" + token.termText() + "] "); }This is using a corrected version of your TestTokenizer. The output is:[12abc xyz foo bar]As you can see, the entire string is one token, not separate ones as would be typical with other implementations.It seems there is a misunderstanding of how the tokenizer and QueryParser are working. Try constructing your own Query's rather than using QueryParser to see things in action better. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
