Apache Lucene.Net 2.4.0 Class Library API

LockFactory.SetLockPrefix Method 

Set the prefix in use for all locks created in this LockFactory. This is normally called once, when a Directory gets this LockFactory instance. However, you can also call this (after this instance is assigned to a Directory) to override the prefix in use. This is helpful if you're running Lucene on machines that have different mount points for the same shared directory.

public virtual void SetLockPrefix(
   string lockPrefix
);

See Also

LockFactory Class | Lucene.Net.Store Namespace