lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3455) All Analysis Consumers should use reusableTokenStream
Date Sun, 25 Sep 2011 05:26:26 GMT


Robert Muir commented on LUCENE-3455:

+1, there is a lot of crazy code around this area, consumers catching the exception from reusableTokenStream()
and falling back to tokenStream() and other silly things.

> All Analysis Consumers should use reusableTokenStream
> -----------------------------------------------------
>                 Key: LUCENE-3455
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Sub-task
>          Components: modules/analysis
>            Reporter: Chris Male
> With Analyzer now using TokenStreamComponents, theres no reason for Analysis consumers
to use tokenStream() (it just gives bad performance).  Consequently all consumers will be
moved over to using reusableTokenStream().  The only challenge here is that reusableTokenStream
throws an IOException which many consumers are not rigged to deal with.
> Once all consumers have been moved, we can rename reusableTokenStream() back to tokenStream().

This message is automatically generated by JIRA.
For more information on JIRA, see:


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

View raw message