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 16167] - Problem searching with WildCards and quotes
Date Sun, 19 Jan 2003 13:54:47 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=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

jakarta@ehatchersolutions.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From jakarta@ehatchersolutions.com  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:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message