lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <>
Subject Re: ReusableAnalyzerBase bug in 3.4.0?
Date Tue, 01 Nov 2011 22:17:15 GMT
On Tue, Nov 1, 2011 at 6:12 PM, Paul Jakubik <> wrote:

> If there is a good reason to avoid resetting the sink here, then would it
> help other people to better document that implementations of
> ReusableAnalyzerBase.createComponents should not create stateful components?
> Paul


I don't think this is a bug.

Consumers of the tokenStream [not producers!] are responsible for
calling reset()

What consumer are you using that does not call reset?
Is it a custom queryparser or something you made, or a consumer from lucene?

If you have custom code that consumes TokenStreams, we provide a
"MockAnalyzer" in lucene's test-framework to ensure its well-behaved:

If you have a consumer from lucene (e.g. a queryparser) that is not
calling reset(), then thats a bug.


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

View raw message