Returns an enumeration of all the documents which contain
CopyC#
term
. For each document, in addition to the document number and frequency of the term in that document, a list of all of the ordinal positions of the term in the document is available. Thus, this method implements the mapping:

    Term    =>    <docNum, freq, <pos1, pos2, ... posfreq-1> >*

This positional information facilitates phrase and proximity searching.

The enumeration is ordered by document number. Each document number is greater than all that precede it in the enumeration.

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

Syntax

C#
public virtual TermPositions TermPositions(
	Term term
)
Visual Basic
Public Overridable Function TermPositions ( _
	term As Term _
) As TermPositions
Visual C++
public:
virtual TermPositions^ TermPositions(
	Term^ term
)

Parameters

term
Type: Lucene.Net.Index..::..Term

[Missing <param name="term"/> documentation for "M:Lucene.Net.Index.IndexReader.TermPositions(Lucene.Net.Index.Term)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Index.IndexReader.TermPositions(Lucene.Net.Index.Term)"]

See Also