Make QueryAutoStopWordAnalyzer immutable and reusable
-----------------------------------------------------
Key: LUCENE-3431
URL: https://issues.apache.org/jira/browse/LUCENE-3431
Project: Lucene - Java
Issue Type: Improvement
Components: modules/analysis
Reporter: Chris Male
Currently QueryAutoStopWordAnalyzer allows its list of stop words to be changed
after instantiation through its addStopWords() methods. This stops the
Analyzer from being reusable since it must instantiate its StopFilters every
time.
Having these methods means that although the Analyzer can be instantiated once
and reused between IndexReaders, the actual analysis stack is not reusable
(which is probably the more expensive part).
So lets change the Analyzer so that its stop words are set at instantiation
time, facilitating reuse.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]