Apache Lucene.Net 2.4.0 Class Library API

Searchable.Doc Method

Expert: Returns the stored fields of document

i
. Called by {@link HitCollector} implementations.

Overload List

Expert: Returns the stored fields of document

i
. Called by {@link HitCollector} implementations.

Document Doc(int);

Get the {@link Lucene.Net.Documents.Document} at the

n
th position. The {@link Lucene.Net.Documents.FieldSelector} may be used to determine what {@link Lucene.Net.Documents.Field}s to load and how they should be loaded. NOTE: If the underlying Reader (more specifically, the underlying
FieldsReader
) is closed before the lazy {@link Lucene.Net.Documents.Field} is loaded an exception may be thrown. If you want the value of a lazy {@link Lucene.Net.Documents.Field} to be available after closing you must explicitly load it or fetch the Document again with a new loader.

Document Doc(int,FieldSelector);

See Also

Searchable Interface | Lucene.Net.Search Namespace |