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.

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

Syntax

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

Parameters

name
Type: System..::..String
The name of the field
tokenStream
Type: Lucene.Net.Analysis..::..TokenStream
The TokenStream with the content

See Also