Apache Lucene.Net 2.4.0 Class Library API

Field Constructor (String, TextReader, TermVector)

Create a tokenized and indexed field that is not stored, optionally with storing term vectors. The Reader is read only when the Document is added to the index, i.e. you may not close the Reader until {@link IndexWriter#AddDocument(Document)} has been called.

public Field(
   string name,
   TextReader reader,
   TermVector termVector
);

Parameters

name
The name of the field
reader
The reader with the content
termVector
Whether term vector should be stored

See Also

Field Class | Lucene.Net.Documents Namespace | Field Constructor Overload List