Re: Problem with tokenStreamValue() method in Field class

2008-02-06 Thread Chris Hostetter
you are running into one of hte problems relating to "Field" being reused by both the indexing code and the searching code. things like the tokenStreamValue() and readerValue() only have meaning on Fields that are about to be indexed ... Field objects returned from searches will never return d

Problem with tokenStreamValue() method in Field class

2008-01-23 Thread mika03
Hi, I am slightly confused. The following code generates the output below. Document doc = hits.doc(i); System.out.println(doc.getFields()); Field f = doc.getField("Text"); System.out.println(f); TokenStream ts = f.tokenStreamValue(); System.out.println(ts); while (true){ Token token =