Get the
Lucene.Net.Documents.Document at the
n
th position. The
FieldSelector may be used to determine what
Lucene.Net.Documents.Fields to load and how they should be loaded.
NOTE: If this Reader (more specifically, the underlying
FieldsReader
) is closed before the lazy
Lucene.Net.Documents.Field is loaded an exception may be thrown. If you want the value of a lazy
Lucene.Net.Documents.Field to be available after closing you must explicitly load it or fetch the Document again with a new loader.
NOTE: for performance reasons, this method does not check if the requested document is deleted, and therefore asking for a deleted document may yield unspecified results. Usually this is not required, however you can call IsDeleted(int) with the requested document ID to verify the document is not deleted.