Zend_Search_Lucene_Search_Similarity::idfFreq
Computes a score factor based on a term's document frequency (the number of documents which contain the term). This value is multiplied by the tf(int) factor for each term in the query and these products are then summed to form the initial score for a document.
Terms that occur in fewer documents are better indicators of topic, so implemenations of this method usually return larger values for rare terms, and smaller values for common terms. docFreq - the number of documents which contain the term numDocs - the total number of documents in the collection Returns a score factor based on the term's document frequency
Signature
public function idfFreq(integer
$docFreq,
integer
$numDocs )
Parameters
$docFreq
— integer$numDocs
— integer
Returns
- float