lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
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 instead.  Finally if is still unset, the 
directory of your index will be used.


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

View raw message