Tell the mapper what to expect in regards to field, number of terms, offset and position storage. This method will be called once before retrieving the vector for a field. This method will be called before {@link #Map(String,int,TermVectorOffsetInfo[],int[])}.

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

Syntax

C#
public abstract void SetExpectations(
	string field,
	int numTerms,
	bool storeOffsets,
	bool storePositions
)
Visual Basic
Public MustOverride Sub SetExpectations ( _
	field As String, _
	numTerms As Integer, _
	storeOffsets As Boolean, _
	storePositions As Boolean _
)
Visual C++
public:
virtual void SetExpectations(
	String^ field, 
	int numTerms, 
	bool storeOffsets, 
	bool storePositions
) abstract

Parameters

field
Type: System..::..String
The field the vector is for
numTerms
Type: System..::..Int32
The number of terms that need to be mapped
storeOffsets
Type: System..::..Boolean
true if the mapper should expect offset information
storePositions
Type: System..::..Boolean
true if the mapper should expect positions info

See Also