lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
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 <leandro.saad@gmail.com> 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.

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message