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 {@link TermPositionVector} is returned.

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

Syntax

C#
public abstract TermFreqVector GetTermFreqVector(
	int docNumber,
	string field
)
Visual Basic
Public MustOverride Function GetTermFreqVector ( _
	docNumber As Integer, _
	field As String _
) As TermFreqVector
Visual C++
public:
virtual TermFreqVector^ GetTermFreqVector(
	int docNumber, 
	String^ field
) abstract

Parameters

docNumber
Type: System..::..Int32
document for which the term frequency vector is returned
field
Type: System..::..String
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