API Documentation

Search/Lucene/Search/Weight/Empty.php

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-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Search_Lucene  
subpackage
Search  
version
$Id: Empty.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Search_Lucene_Search_Weight_Empty

Calculate query weights and build query scorers.

A Weight is constructed by a query Query->createWeight(). The sumOfSquaredWeights() method is then called on the top-level query to compute the query normalization factor Similarity->queryNorm(float). This factor is then passed to normalize(float). At this point the weighting is complete.

Extends from
\Zend_Search_Lucene_Search_Weight
category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Search_Lucene  
subpackage
Search  

Methods

methodpublicgetValue( ) : float

The weight for this query.

Inherited from: \Zend_Search_Lucene_Search_Weight::getValue()
Returns
Type Description
float
methodpublicnormalize( float $queryNorm ) : void

Assigns the query normalization factor to this.

Parameters
Name Type Description
$queryNorm float
methodpublicsumOfSquaredWeights( ) : float

The sum of squared weights of contained query clauses.

Returns
Type Description
float
Documentation was generated by DocBlox 0.13.3.