Writer needs to acquire an exclusive lock on the Directory. While both F A M Directory have sensible defaults you might want to consider an alternative for finetuning of performance, or because you are storing the index on some multiple-node shared resource having issues with file based locking. Using an inappropriate Lock Factory will have your index corrupted! Make sure you understood the Lock design. Contents F S Lock S Lock Factory and rely on a lock file. This version relies on N I O and the lock files will be properly removed (by the O S) if the J V M has an abnormal exit,
Read full article from AvailableLockFactories - Lucene-java Wiki
No comments:
Post a Comment