Apache Lucene.Net 2.4.0 Class Library API |
|
IndexReader.Open Method (Directory, IndexDeletionPolicy)
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.
Parameters
- directory
- the index directory
- deletionPolicy
- a custom deletion policy (only used if performing deletes or setting norms)
See Also
IndexReader Class | Lucene.Net.Index Namespace | IndexReader.Open Overload List