API Documentation

Zend/Search/Lucene/Search/Similarity/Default.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Search_Lucene  
Subpackage
Search  
Version
$Id: Default.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Search_Lucene_Search_Similarity_Default

Package: Zend\Search\Lucene\Search

Parent(s)
\Zend_Search_Lucene_Search_Similarity
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

methodpubliccoord( integer $overlap, integer $maxOverlap ) : float

Implemented as 'overlap/maxOverlap'.

Parameters
Name Type Description
$overlap integer
$maxOverlap integer
Returns
Type Description
float
methodpublicidfFreq( integer $docFreq, integer $numDocs ) : float

Implemented as 'log(numDocs/(docFreq+1)) + 1'.

Parameters
Name Type Description
$docFreq integer
$numDocs integer
Returns
Type Description
float
methodpubliclengthNorm( string $fieldName, integer $numTerms ) : float

Implemented as '1/sqrt(numTerms)'.

Parameters
Name Type Description
$fieldName string
$numTerms integer
Returns
Type Description
float
methodpublicqueryNorm( float $sumOfSquaredWeights ) : float

Implemented as '1/sqrt(sumOfSquaredWeights)'.

Parameters
Name Type Description
$sumOfSquaredWeights float
Returns
Type Description
float
methodpublicsloppyFreq( integer $distance ) : float

Implemented as '1/(distance + 1)'.

Parameters
Name Type Description
$distance integer
Returns
Type Description
float
methodpublictf( float $freq ) : float

Implemented as 'sqrt(freq)'.

Parameters
Name Type Description
$freq float
Returns
Type Description
float
Documentation was generated by DocBlox 0.15.1.