: I am observing that a Field constructed using tokenStream i.e Filed fl  =
: new Field(String name, TokenStream tokenStream)  is not converted to the
: lower case when stored in the index.
: The terms in the index are exactly same as those in tokenStream.
: When I do a phrase search,the  PhraseQuery converts the search string to
: all lower case , however it does not find any hits in the index because in

if this is the case, then it is because the Analyzer used by your 
QueryParser is lowercasing the tokens.  when you use the Field constructor 
that takes a TokenStream, all of the analysis for the source text should 
have alreayd been done -- if not, then use one of the other constructors 
and let the Analyser do it's thing when you add the document to your 
index.



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to