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 void Add(
	string name,
	bool isIndexed,
	bool storeTermVector,
	bool storePositionWithTermVector,
	bool storeOffsetWithTermVector
)
Visual Basic
Public Sub Add ( _
	name As String, _
	isIndexed As Boolean, _
	storeTermVector As Boolean, _
	storePositionWithTermVector As Boolean, _
	storeOffsetWithTermVector As Boolean _
)
Visual C++
public:
void Add(
	String^ name, 
	bool isIndexed, 
	bool storeTermVector, 
	bool storePositionWithTermVector, 
	bool storeOffsetWithTermVector
)

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

See Also