Apache Lucene.Net 2.1 Class Library API

FSDirectory.SetDisableLocks Method 

Set whether Lucene's use of lock files is disabled. By default, lock files are enabled. They should only be disabled if the index is on a read-only medium like a CD-ROM.

public static void SetDisableLocks(
   bool doDisableLocks
);

See Also

FSDirectory Class | Lucene.Net.Store Namespace