Apache Lucene.Net 2.4.0 Class Library API

Field Constructor (String, TokenStream)

Create a tokenized and indexed field that is not stored. Term vectors will not be stored. 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
);

Parameters

name
The name of the field
tokenStream
The TokenStream with the content

See Also

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