Lucene.Net 1.9.1 Class Library

IndexReader.GetTermFreqVector Method 

Return a term frequency vector for the specified document and field. The returned vector contains terms and frequencies for the terms in the specified field of this document, if the field had the storeTermVector flag set. If termvectors had been stored with positions or offsets, a TermPositionsVector is returned.

public abstract TermFreqVector GetTermFreqVector(
   int docNumber,
   string field
);

Parameters

docNumber
document for which the term frequency vector is returned
field
field for which the term frequency vector is returned.

Return Value

term frequency vector May be null if field does not exist in the specified document or term vector was not stored.

See Also

IndexReader Class | Lucene.Net.Index Namespace | TermVector