Zend_Search_Lucene_Search_Similarity::idf
Computes a score factor for a simple term or a phrase.
The default implementation is: return idfFreq(searcher.docFreq(term), searcher.maxDoc()); input - the term in question or array of terms reader - reader the document collection being searched Returns a score factor for the term
Signature
public function idf(mixed
$input,
Zend_Search_Lucene_Interface
$reader )
Parameters
$input
— mixed$reader
— Zend_Search_Lucene_Interface
Returns
- a
- score factor for the term