Apache Lucene.Net 2.4.0 Class Library API

Field Constructor (String, TokenStream, TermVector)

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

public Field(
   string name,
   TokenStream tokenStream,
   TermVector termVector
);

Parameters

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

See Also

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