API Documentation

Search/Lucene/Search/Similarity/Default.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Search_Lucene
subpackage
Search
version
$Id: Default.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Search_Lucene_Search_Similarity_Default

Description

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.

Zend_Search_Lucene_Search_Similarity_Default

Extends from
Zend_Search_Lucene_Search_Similarity
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Search_Lucene
subpackage
Search
Methods
lengthNorm
queryNorm
tf
sloppyFreq
idfFreq
coord

Description

Methods

coord

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

Implemented as 'overlap/maxOverlap'.

Arguments
$overlap
integer
$maxOverlap
integer
Output
float
Details
visibility
public
final
false
static
false

idfFreq

idfFreq( integer $docFreq, integer $numDocs ) : float

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

Arguments
$docFreq
integer
$numDocs
integer
Output
float
Details
visibility
public
final
false
static
false

lengthNorm

lengthNorm( string $fieldName, integer $numTerms ) : float

Implemented as '1/sqrt(numTerms)'.

Arguments
$fieldName
string
$numTerms
integer
Output
float
Details
visibility
public
final
false
static
false

queryNorm

queryNorm( float $sumOfSquaredWeights ) : float

Implemented as '1/sqrt(sumOfSquaredWeights)'.

Arguments
$sumOfSquaredWeights
float
Output
float
Details
visibility
public
final
false
static
false

sloppyFreq

sloppyFreq( integer $distance ) : float

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

Arguments
$distance
integer
Output
float
Details
visibility
public
final
false
static
false

tf

tf( float $freq ) : float

Implemented as 'sqrt(freq)'.

Arguments
$freq
float
Output
float
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.