Apache Lucene.Net 2.4.0 Class Library API

TermVectorMapper.SetExpectations Method 

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[])}.

public abstract void SetExpectations(
   string field,
   int numTerms,
   bool storeOffsets,
   bool storePositions
);

Parameters

field
The field the vector is for
numTerms
The number of terms that need to be mapped
storeOffsets
true if the mapper should expect offset information
storePositions
true if the mapper should expect positions info

See Also

TermVectorMapper Class | Lucene.Net.Index Namespace