If the field is not yet known, adds it. If it is known, checks to make sure that the isIndexed flag is the same as was given previously for this field. If not - marks it as being indexed. Same goes for the TermVector parameters.

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

Syntax

C#
public FieldInfo Add(
	string name,
	bool isIndexed,
	bool storeTermVector,
	bool storePositionWithTermVector,
	bool storeOffsetWithTermVector,
	bool omitNorms,
	bool storePayloads,
	bool omitTermFreqAndPositions
)
Visual Basic
Public Function Add ( _
	name As String, _
	isIndexed As Boolean, _
	storeTermVector As Boolean, _
	storePositionWithTermVector As Boolean, _
	storeOffsetWithTermVector As Boolean, _
	omitNorms As Boolean, _
	storePayloads As Boolean, _
	omitTermFreqAndPositions As Boolean _
) As FieldInfo
Visual C++
public:
FieldInfo^ Add(
	String^ name, 
	bool isIndexed, 
	bool storeTermVector, 
	bool storePositionWithTermVector, 
	bool storeOffsetWithTermVector, 
	bool omitNorms, 
	bool storePayloads, 
	bool omitTermFreqAndPositions
)

Parameters

name
Type: System..::..String
The name of the field
isIndexed
Type: System..::..Boolean
true if the field is indexed
storeTermVector
Type: System..::..Boolean
true if the term vector should be stored
storePositionWithTermVector
Type: System..::..Boolean
true if the term vector with positions should be stored
storeOffsetWithTermVector
Type: System..::..Boolean
true if the term vector with offsets should be stored
omitNorms
Type: System..::..Boolean
true if the norms for the indexed field should be omitted
storePayloads
Type: System..::..Boolean
true if payloads should be stored for this field
omitTermFreqAndPositions
Type: System..::..Boolean
true if term freqs should be omitted for this field

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Index.FieldInfos.Add(System.String,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean)"]

See Also