Zend_Search_Lucene_Search_Similarity::coord
Computes a score factor based on the fraction of all query terms that a document contains. This value is multiplied into scores.
The presence of a large portion of the query terms indicates a better match with the query, so implemenations of this method usually return larger values when the ratio between these parameters is large and smaller values when the ratio between them is small. overlap - the number of query terms matched in the document maxOverlap - the total number of terms in the query Returns a score factor based on term overlap with the query
Signature
public function coord(integer
$overlap,
integer
$maxOverlap )
Parameters
$overlap
— integer$maxOverlap
— integer
Returns
- float