lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiye Yu ...@AI.SRI.COM>
Subject Analyzer sharing
Date Fri, 22 Jun 2007 21:26:38 GMT

I guess an Analyzer (built in ones such as StandardAnalyzer, 
POrterStemAnalyer and etc) is not thread safe. But I wonder if it's ok 
to share the same analyzer object within a thread. For example, if I 
want to create a PerFieldAnalyzer for 5 fields, can I use the same 
Analyzer object for all the fields? Or can both a QueryParser and 
Indexer/Searcher use the same Analyzer object?

Any comment?



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

View raw message