Apache Lucene.Net 2.4.0 Class Library API

IndexReader.Open Method (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(
   FileInfo path
);

Parameters

path
the path to the index directory

See Also

IndexReader Class | Lucene.Net.Index Namespace | IndexReader.Open Overload List