Apache Lucene.Net 2.4.0 Class Library API

IndexReader.Open Method

Expert: Returns a read/write IndexReader reading the index in the given IndexCommit.

NOTE: Starting in 3.0 this will return a readOnly IndexReader.

Throws CorruptIndexException if the index is corrupt.

Throws IOException if there is a low-level IO error.

Overload List

Expert: Returns a read/write IndexReader reading the index in the given IndexCommit. NOTE: Starting in 3.0 this will return a readOnly IndexReader. Throws CorruptIndexException if the index is corrupt. Throws IOException if there is a low-level IO error.

public static IndexReader Open(IndexCommit);

Expert: Returns a read/write IndexReader reading the index in the given Directory, using a specific commit and with a custom IndexDeletionPolicy. NOTE: Starting in 3.0 this will return a readOnly IndexReader. Throws CorruptIndexException if the index is corrupt. Throws IOException if there is a low-level IO error.

public static IndexReader Open(IndexCommit,IndexDeletionPolicy);

Expert: Returns a read/write or read only IndexReader reading the index in the given Directory, using a specific commit and with a custom IndexDeletionPolicy. NOTE: Starting in 3.0 this will return a readOnly IndexReader. Throws CorruptIndexException if the index is corrupt. Throws IOException if there is a low-level IO error.

public static IndexReader Open(IndexCommit,IndexDeletionPolicy,bool);

Returns a read/write IndexReader reading the index in the given Directory. NOTE: Starting in 3.0 this will return a readOnly IndexReader. Throws CorruptIndexException if the index is corrupt. Throws IOException if there is a low-level IO error.

public static IndexReader Open(Directory);

Expert: Returns a read/write IndexReader reading the index in the given Directory, with a custom IndexDeletionPolicy. NOTE: Starting in 3.0 this will return a readOnly IndexReader. Throws CorruptIndexException if the index is corrupt. Throws IOException if there is a low-level IO error.

public static IndexReader Open(Directory,IndexDeletionPolicy);

Expert: Returns a read/write or read only IndexReader using the index in the given Directory, with a custom IndexDeletionPolicy. Throws CorruptIndexException if the index is corrupt. Throws IOException if there is a low-level IO error.

public static IndexReader Open(Directory,IndexDeletionPolicy,bool);

Returns a read/write or read only IndexReader using the index in the given Directory. Throws CorruptIndexException if the index is corrupt. Throws IOException if there is a low-level IO error.

public static IndexReader Open(Directory,bool);

Returns a read/write IndexReader reading the index in an FSDirectory in the named path. NOTE: Starting in 3.0 this will return a readOnly IndexReader. Throws CorruptIndexException if the index is corrupt. Throws IOException if there is a low-level IO error.

public static IndexReader Open(FileInfo);

Returns a read/write IndexReader reading the index in an FSDirectory in the named path. NOTE: Starting in 3.0 this will return a readOnly IndexReader. Throws CorruptIndexException if the index is corrupt. Throws IOException if there is a low-level IO error.

public static IndexReader Open(string);

See Also

IndexReader Class | Lucene.Net.Index Namespace