|
[
Permlink
| « Hide
]
Naveen Belkale added a comment - 25/Jan/08 12:52 PM
Suggested patch.
One more small query. We have requirement where we have to add new words to our dictionary quite frequently. So multiple threads may concurrently call indexDictionary. This will cause problems as each call to indexDictionary will create a new IndexWriter. So is it possible to make indexDictionary function synchronized? Like this
public synchronized void indexDictionary(Dictionary dict) throws IOException { ........ This patch no longer applies. Could you provide a new patch (against trunk)? Also, please use 2-spaces for indentation. Thanks.
As for synchronizing indexDictionary method, why not add synchronization logic to your application? Suggested patch against trunk
Thank you for the patch!
Committed revision 659013. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||