|
[
Permlink
| « Hide
]
Naveen Belkale added a comment - 25/Jan/08 12:52 PM
Suggested patch.
Naveen Belkale made changes - 25/Jan/08 12:52 PM
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 { ........
Naveen Belkale made changes - 25/Jan/08 02:11 PM
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?
Otis Gospodnetic made changes - 17/May/08 04:41 AM
Suggested patch against trunk
Naveen Belkale made changes - 21/May/08 10:06 AM
Thank you for the patch!
Committed revision 659013.
Otis Gospodnetic made changes - 22/May/08 06:21 AM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||