> Then how do you notify the other filters that they should reset their
> state?
> TokenStream.reset()?  The javadoc specifies that it's actually used
> for something else - but perhaps it can be reused for this purpose?

TokenStream.reset() is always called before the first incrementToken call by
the the DocInverter. But for extra safety (e.g. with QueryParser and so on),
you should simply additionally call reset() on the top-level TokenFilter.

Uwe


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to