lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Developer Developer" <devquesti...@gmail.com>
Subject Use of Field(String name, TokenStream tokenStream)
Date Sun, 07 Oct 2007 19:27:36 GMT
Hello Frens,

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
the index the terms are all in the Mixed case ( i.e as they appeared in the
tokenstream).

My questions are

is this the correct behavior of Lucene ?
If so, why do we need Tokenstream constructor  when we cannot even search on
it ?
is there a way to convert the tokens to terms while storing in the index
when using tokenstream as input to Field?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message