Java Mailing List Archive

http://www.java2.5341.com/

Home » java-user.lucene »

ThreadSafe SpellChecker?

mattspitz

2008-10-14


Author LoginPost Reply

I was wondering if the Lucene SpellChecker class was threadsafe,
specifically, indexDictionary().

Such that:

for (int i = 0; i < numReaders; i++) {
  //spawn new thread to run:
    spellchecker.indexDictionary(new LuceneDictionary(readers[i],
myField));
}

Would work.

Thanks,
Matt
--
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@(protected)
For additional commands, e-mail: java-user-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.