Overload List
Name | Description | |
---|---|---|
Idf(Int32, Int32) | Implemented as (Overrides Similarity..::..Idf(Int32, Int32).)CopyC# log(numDocs/(docFreq+1)) + 1 | |
Idf(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.) | |
Idf(Term, Searcher) | Obsolete. Computes a score factor for a simple term.
The default implementation is: (Inherited from Similarity.)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. |