Re: Multiple lock files

2006-08-08 Thread Michael McCandless
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 <[EMAIL PROTECTED]> 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?

Re: Multiple lock files

2006-08-08 Thread Simon Willnauer
The index writer creates the lock in its constructor via the public FSDirectory makeLock method. regards simon On 8/8/06, Leandro Saad <[EMAIL PROTECTED]> 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

Re: Multiple lock files

2006-08-08 Thread Leandro Saad
I want to use the same lock dir, but remove only the associated lock file when I start the application. :: Leandro On 8/8/06, Simon Willnauer <[EMAIL PROTECTED]> wrote: You can start your applications with a system property set: "org.apache.lucene.lockDir" to specify your lock directory Hope

Re: Multiple lock files

2006-08-08 Thread Simon Willnauer
You can start your applications with a system property set: "org.apache.lucene.lockDir" to specify your lock directory Hope that helps... regards Simon On 8/8/06, Leandro Saad <[EMAIL PROTECTED]> wrote: Yeah. But how do I know if a lock file is related to an index or app? I don't want to remov

Re: Multiple lock files

2006-08-08 Thread Leandro Saad
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? :: Leandro On 8/8/06, Michael Busch <[EMAIL PROTECTED]> wrote: > Yeah. But how do I know if a lock file is related to a

Re: Multiple lock files

2006-08-08 Thread Michael Busch
Yeah. But how do I know if a lock file is related to an index or app? I don't want to remove a lock file that another app is using Leandro, check out the static method of IndexReader: unlock(Directory). Link: http://lucene.apache.org/java/docs/api/org/apache/lucene/index/IndexReader.html#unl

Re: Multiple lock files

2006-08-08 Thread Leandro Saad
Yeah. But how do I know if a lock file is related to an index or app? I don't want to remove a lock file that another app is using :: Leandro On 8/8/06, Michael McCandless <[EMAIL PROTECTED]> wrote: > How do I remove lucene locks (startup) if there are multiple applications > using lucene on

Re: Multiple lock files

2006-08-08 Thread Michael McCandless
How do I remove lucene locks (startup) if there are multiple applications using lucene on the same box and all use the same lock dir? The lock files are just files, so you can up and remove them. However: this is in general dangerous and should not be necessary. Lucene uses the lock files to

Multiple lock files

2006-08-08 Thread Leandro Saad
Hi all. How do I remove lucene locks (startup) if there are multiple applications using lucene on the same box and all use the same lock dir? -- Leandro Rodrigo Saad Cruz CTO - InterBusiness Technologies db.apache.org/ojb guara-framework.sf.net xingu.sf.net