Forcibly unlocks the index in the named directory.

Caution: this should only be used by failure recovery code, when it is known that no other process nor thread is in fact currently accessing this index.

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

Syntax

C#
[ObsoleteAttribute("Please use IndexWriter.Unlock(Directory) instead. This method will be removed in the 3.0 release.")]
public static void Unlock(
	Directory directory
)
Visual Basic
<ObsoleteAttribute("Please use IndexWriter.Unlock(Directory) instead. This method will be removed in the 3.0 release.")> _
Public Shared Sub Unlock ( _
	directory As Directory _
)
Visual C++
[ObsoleteAttribute(L"Please use IndexWriter.Unlock(Directory) instead. This method will be removed in the 3.0 release.")]
public:
static void Unlock(
	Directory^ directory
)

Parameters

directory
Type: Lucene.Net.Store..::..Directory

[Missing <param name="directory"/> documentation for "M:Lucene.Net.Index.IndexReader.Unlock(Lucene.Net.Store.Directory)"]

See Also