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.

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

Syntax

C#
public Field(
	string name,
	TokenStream tokenStream,
	Field..::..TermVector termVector
)
Visual Basic
Public Sub New ( _
	name As String, _
	tokenStream As TokenStream, _
	termVector As Field..::..TermVector _
)
Visual C++
public:
Field(
	String^ name, 
	TokenStream^ tokenStream, 
	Field..::..TermVector^ termVector
)

Parameters

name
Type: System..::..String
The name of the field
tokenStream
Type: Lucene.Net.Analysis..::..TokenStream
The TokenStream with the content
termVector
Type: Lucene.Net.Documents..::..Field..::..TermVector
Whether term vector should be stored

See Also