Zend_Search_Lucene_Search_Similarity::sloppyFreq
Computes the amount of a sloppy phrase match, based on an edit distance.
This value is summed for each sloppy phrase match in a document to form the frequency that is passed to tf(float). A phrase match with a small edit distance to a document passage more closely matches the document, so implementations of this method usually return larger values when the edit distance is small and smaller values when it is large. distance - the edit distance of this sloppy phrase match Returns the frequency increment for this match
Signature
public function sloppyFreq(integer
$distance )
Parameters
$distance
— integer
Returns
- float