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.

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

Syntax

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

Parameters

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

See Also