lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: Multiple lock files
Date Tue, 08 Aug 2006 18:04:38 GMT
Simon Willnauer wrote:
> The index writer creates the lock in its constructor via the public
> FSDirectory makeLock method.
> regards simon
> On 8/8/06, Leandro Saad <> wrote:
>> I'm trying to use them, and I maybe be wrong, but I can't unlock the dir
>> before I create the Directory right? Do you know if the lock is 
>> created when
>> I create the Directory?

You can create the Directory (FSDirectory.getDirectory(*)), and then 
call IndexReader's isLocked / unlock.  The creation of the directory 
doesn't create any lock files.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message