lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiye Yu ...@AI.SRI.COM>
Subject Re: Analyzer sharing
Date Fri, 22 Jun 2007 21:42:04 GMT
I see.
I guess those Filters (e.g. PorterStemFilter) that make up the analyzer 
are not thread safe or cannot be shared.
Thanks for your quick response!

Jay

Yonik Seeley wrote:
> On 6/22/07, Jiye Yu <yu@ai.sri.com> wrote:
>> I guess an Analyzer (built in ones such as StandardAnalyzer,
>> POrterStemAnalyer and etc) is not thread safe.
> 
> Analyzers *are* thread-safe.
> Multiple threads can all call analyzer.tokenStream() without any
> synchronization.
> 
> -Yonik
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message