Overload List

  NameDescription
Public methodIdf(ICollection, Searcher) Obsolete.
Computes a score factor for a phrase.

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

(Inherited from Similarity.)
Public methodIdf(Int32, Int32) (Overrides Similarity..::..Idf(Int32, Int32).)
Public methodIdf(Term, Searcher) Obsolete.
Computes a score factor for a simple term.

The default implementation is:

            return idf(searcher.docFreq(term), searcher.maxDoc());
            
Note that {@link Searcher#MaxDoc()} is used instead of {@link Lucene.Net.Index.IndexReader#NumDocs()} because it is proportional to {@link Searcher#DocFreq(Term)} , i.e., when one is inaccurate, so is the other, and in the same direction.
(Inherited from Similarity.)

See Also