Create a field by specifying its name, value and how it will be saved in the index.
  • the field is neither stored nor indexed
  • the field is not indexed but termVector is
    CopyC#
    TermVector.YES

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,
	Field..::..TermVector termVector
)
Visual Basic
Public Sub New ( _
	name As String, _
	value_Renamed As String, _
	store As Field..::..Store, _
	index As Field..::..Index, _
	termVector As Field..::..TermVector _
)
Visual C++
public:
Field(
	String^ name, 
	String^ value_Renamed, 
	Field..::..Store^ store, 
	Field..::..Index^ index, 
	Field..::..TermVector^ termVector
)

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,Lucene.Net.Documents.Field.TermVector)"]

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
termVector
Type: Lucene.Net.Documents..::..Field..::..TermVector
Whether term vector should be stored

See Also