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
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 =