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.