lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Noll <>
Subject Re: API for setting lock directory
Date Tue, 28 Mar 2006 22:46:41 GMT
Gopikrishnan Subramani wrote:
> With Lucene 1.4.3 I used to use a different lock directory from the default
> by setting org.apache.lucene.lockdir system property. But as per
> this is not
> supported in Lucene 1.9 and above. I don't see any equivalent API for
> lockDir property though in Lucene 1.9.1. Does anyone know if using this
> system property is still supported?

Sorry if this is a bit of a side-track, but it's about locking and this 
thread reminded me of it.

Would it be possible to have the lock file inside the text index 
directory itself?  I'd rather have my locks right next to the actual 
text index, so that even if a user is accessing it over a network it 
would still lock other users from writing to it.

I guess the system property could be set right before opening the index, 
but that isn't the best thread safety I could imagine.


Daniel Noll

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia    Ph: +61 2 9280 0699
Web:                        Fax: +61 2 9212 6902

This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.

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

View raw message