Sorry, too soon to celebrate.

I've entered those fixes but that code below dose not working! field value
in index is null :(
in my opinion it is not a case of multi time used tokenStream.

PolishAnalyzer plAnalyzer = new PolishAnalyzer (Version.LUCENE_33);
TokenStream plStream = plAnalyzer.tokenStream("analizedContent", new
StringReader(handler.toString()));

/*TermAttribute term = plStream.addAttribute(TermAttribute.class);
String analyzedContent = new String();
while(plStream.incrementToken()){
analyzedContent += (term.term() + " ");
}
doc.add(new Field("analizedContent", analyzedContent, Field.Store.YES,
Field.Index.ANALYZED));*/

doc.add(new Field("analizedContent", plStream, TermVector.YES));
doc.add(new Field("content", handler.toString(), Field.Store.YES,
Field.Index.ANALYZED));

Reply via email to