Create a field by specifying its name, value and how it will be saved in the index. Term vectors will not be stored in the index.

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

Syntax

C#
public Field(
	string name,
	string value_Renamed,
	Field..::..Store store,
	Field..::..Index index
)
Visual Basic
Public Sub New ( _
	name As String, _
	value_Renamed As String, _
	store As Field..::..Store, _
	index As Field..::..Index _
)
Visual C++
public:
Field(
	String^ name, 
	String^ value_Renamed, 
	Field..::..Store^ store, 
	Field..::..Index^ index
)

Parameters

name
Type: System..::..String
The name of the field
value_Renamed
Type: System..::..String

[Missing <param name="value_Renamed"/> documentation for "M:Lucene.Net.Documents.Field.#ctor(System.String,System.String,Lucene.Net.Documents.Field.Store,Lucene.Net.Documents.Field.Index)"]

store
Type: Lucene.Net.Documents..::..Field..::..Store
Whether
CopyC#
value
should be stored in the index
index
Type: Lucene.Net.Documents..::..Field..::..Index
Whether the field should be indexed, and if so, if it should be tokenized before indexing

See Also