Doug Cutting wrote:Grant answered this for me. Thanks.
Grant Ingersoll wrote:Can you clarify this for me? Will the tokenStream method of an Analyzer instance ever be called concurrently? I see in typical analyzer implementations a Tokenizer and TokenFilters are instantiated anew with each call and thus skirt the issue.
The thread safety issues are on the search side usage of Analyzer, not indexing.
Primarily search, but not exclusively. IndexWriter is thread safe. One can add documents to a single IndexWriter instance from multiple threads. Tokenization will be done in parallel.
Doug
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
http://issues.apache.org/bugzilla/show_bug.cgi?id=28182
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]