Expert: returns a read/write IndexReader reading the index in the given Directory, with a custom {@link IndexDeletionPolicy}.

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

Syntax

C#
[ObsoleteAttribute("Use Open(Directory, IndexDeletionPolicy, bool) instead. This method will be removed in the 3.0 release.")]
public static IndexReader Open(
	Directory directory,
	IndexDeletionPolicy deletionPolicy
)
Visual Basic
<ObsoleteAttribute("Use Open(Directory, IndexDeletionPolicy, bool) instead. This method will be removed in the 3.0 release.")> _
Public Shared Function Open ( _
	directory As Directory, _
	deletionPolicy As IndexDeletionPolicy _
) As IndexReader
Visual C++
[ObsoleteAttribute(L"Use Open(Directory, IndexDeletionPolicy, bool) instead. This method will be removed in the 3.0 release.")]
public:
static IndexReader^ Open(
	Directory^ directory, 
	IndexDeletionPolicy^ deletionPolicy
)

Parameters

directory
Type: Lucene.Net.Store..::..Directory
the index directory
deletionPolicy
Type: Lucene.Net.Index..::..IndexDeletionPolicy
a custom deletion policy (only used if you use this reader to perform deletes or to set norms); see {@link IndexWriter} for details.

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Index.IndexReader.Open(Lucene.Net.Store.Directory,Lucene.Net.Index.IndexDeletionPolicy)"]

See Also