lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Smith <>
Subject 4.0 tokenStream or SimpleAnalyzer bug?
Date Fri, 02 Nov 2012 01:07:02 GMT
I was doing some tokenizer/filter analysis attempting to fix a bug I have in highlighting under
4.0.  I was running the displayTokensWithFullDetails code from LIA2.  I would get an exception
with a bad index value of -1.

I fixed the problem by doing a reset() immediately after creating my TokenStream object. 
Shouldn't a new TokenStream object be essentially "reset" when created?  This was with SimpleAnalyzer()
(since I suspect that may be relevant).

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