On Fri, 2004-11-12 at 09:51, Luke Shannon wrote:
> Hi Luke;
> 
> Currently I am experimenting with checking if the index is lock using
> IndexReader.locked before creating a writer. If this turns out to be the
> case I was thinking of just unlocking the file.
> 
> Do you think this is a good strategy?

No, because if the index is locked, that means another thread or process
is writing to it.

If you're getting spurious locks, stop your application and clean our
the /tmp/ directory (you should see files named *lucene* -- these are
the lock files).

Luke


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to