Expert: returns a read/write IndexReader reading the index in the given
Directory, using a specific commit and with a custom
{@link IndexDeletionPolicy}.
Namespace: Lucene.Net.IndexAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
[ObsoleteAttribute("Use Open(IndexCommit, IndexDeletionPolicy, bool) instead. This method will be removed in the 3.0 release.")] public static IndexReader Open( IndexCommit commit, IndexDeletionPolicy deletionPolicy ) |
Visual Basic |
---|
<ObsoleteAttribute("Use Open(IndexCommit, IndexDeletionPolicy, bool) instead. This method will be removed in the 3.0 release.")> _ Public Shared Function Open ( _ commit As IndexCommit, _ deletionPolicy As IndexDeletionPolicy _ ) As IndexReader |
Visual C++ |
---|
[ObsoleteAttribute(L"Use Open(IndexCommit, IndexDeletionPolicy, bool) instead. This method will be removed in the 3.0 release.")] public: static IndexReader^ Open( IndexCommit^ commit, IndexDeletionPolicy^ deletionPolicy ) |
Parameters
- commit
- Type: Lucene.Net.Index..::..IndexCommit
the specific {@link IndexCommit} to open; see {@link IndexReader#listCommits} to list all commits in a 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.Index.IndexCommit,Lucene.Net.Index.IndexDeletionPolicy)"]