Apache Lucene.Net 2.4.0 Class Library API

Directory.GetLockID Method 

Return a string identifier that uniquely differentiates this Directory instance from other Directory instances. This ID should be the same if two Directory instances (even in different JVMs and/or on different machines) are considered "the same index". This is how locking "scopes" to the right index.

public virtual string GetLockID();

See Also

Directory Class | Lucene.Net.Store Namespace