lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Analyzer sharing
Date Fri, 22 Jun 2007 21:31:57 GMT
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


Mime
View raw message