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: Lock File
Date Fri, 30 Jun 2006 14:10:13 GMT

> 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


Mime
View raw message