lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Willnauer <>
Subject Re: 4.0 tokenStream or SimpleAnalyzer bug?
Date Fri, 02 Nov 2012 07:00:00 GMT
hey scott,

this is intentional see the javadoc step 2:


On Fri, Nov 2, 2012 at 2:07 AM, Scott Smith <> wrote:
> 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).

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message