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.

Namespace: Lucene.Net.Store
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[ObsoleteAttribute("Use a Open(File, LockFactory) or a constructor that takes a LockFactory and supply NoLockFactory.GetNoLockFactory. This setting does not work with Open(File) only the deprecated GetDirectory respect this setting.")]
public static void SetDisableLocks(
	bool doDisableLocks
)
Visual Basic
<ObsoleteAttribute("Use a Open(File, LockFactory) or a constructor that takes a LockFactory and supply NoLockFactory.GetNoLockFactory. This setting does not work with Open(File) only the deprecated GetDirectory respect this setting.")> _
Public Shared Sub SetDisableLocks ( _
	doDisableLocks As Boolean _
)
Visual C++
[ObsoleteAttribute(L"Use a Open(File, LockFactory) or a constructor that takes a LockFactory and supply NoLockFactory.GetNoLockFactory. This setting does not work with Open(File) only the deprecated GetDirectory respect this setting.")]
public:
static void SetDisableLocks(
	bool doDisableLocks
)

Parameters

doDisableLocks
Type: System..::..Boolean

[Missing <param name="doDisableLocks"/> documentation for "M:Lucene.Net.Store.FSDirectory.SetDisableLocks(System.Boolean)"]

See Also