Returns an enumeration of all the documents which contain
CopyC#
term
. For each document, the document number, the frequency of the term in that document is also provided, for use in search scoring. If term is null, then all non-deleted docs are returned with freq=1. Thus, this method implements the mapping:

    Term    =>    <docNum, freq>*

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 TermDocs TermDocs(
	Term term
)
Visual Basic
Public Overridable Function TermDocs ( _
	term As Term _
) As TermDocs
Visual C++
public:
virtual TermDocs^ TermDocs(
	Term^ term
)

Parameters

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

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

Return Value

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

See Also