lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "WATHELET Thomas" <thomas.wathe...@europarl.europa.eu>
Subject RE: Lock File
Date Fri, 30 Jun 2006 14:12:17 GMT
Ok thanks I understand now.
Thanks a lot. 

-----Original Message-----
From: Michael McCandless [mailto:lucene@mikemccandless.com] 
Sent: 30 June 2006 16:10
To: java-user@lucene.apache.org
Subject: Re: Lock File


> It's not possible to change lockDir because it's a final static
> varriables?
> Is it possible to change the lockDir?

Correct, because it's final you cannot change it directly.

But, you can set the Java system property org.apache.lucene.lockDir. 
This will change the lock directory, because the final lockDir is 
initialized by looking up that property, and if it's unset, looking up 
java.io.tmpdir instead.  Finally if java.io.tmpdir is still unset, the 
directory of your index will be used.

Mike

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




---------------------------------------------------------------------
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