Computes a score factor for a phrase.

The default implementation sums the {@link #Idf(Term,Searcher)} factor for each term in the phrase.

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

Syntax

C#
[ObsoleteAttribute("see IdfExplain(Collection, Searcher)")]
public virtual float Idf(
	ICollection terms,
	Searcher searcher
)
Visual Basic
<ObsoleteAttribute("see IdfExplain(Collection, Searcher)")> _
Public Overridable Function Idf ( _
	terms As ICollection, _
	searcher As Searcher _
) As Single
Visual C++
[ObsoleteAttribute(L"see IdfExplain(Collection, Searcher)")]
public:
virtual float Idf(
	ICollection^ terms, 
	Searcher^ searcher
)

Parameters

terms
Type: System.Collections..::..ICollection
the terms in the phrase
searcher
Type: Lucene.Net.Search..::..Searcher
the document collection being searched

Return Value

idf score factor

See Also