Documents are the unit of indexing and search. A Document is a set of fields. Each field has a name and a textual value. A field may be {@link Fieldable#IsStored() stored} with the document, in which case it is returned with search hits on the document. Thus each document should typically contain one or more stored fields which uniquely identify it.

Note that fields which are not {@link Fieldable#IsStored() stored} are not available in documents retrieved from the index, e.g. with {@link ScoreDoc#doc}, {@link Searcher#Doc(int)} or {@link IndexReader#Document(int)}.

Namespace: Lucene.Net.Documents
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[SerializableAttribute]
public sealed class Document
Visual Basic
<SerializableAttribute> _
Public NotInheritable Class Document
Visual C++
[SerializableAttribute]
public ref class Document sealed

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Documents..::..Document

See Also