Search/Lucene/Search/Weight/Empty.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 [email protected] 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: Empty.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Search_Lucene_Search_Weight_Empty

Package: Zend\Search\Lucene\Search

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.

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

Properties

Propertyprotectedfloat $_queryNorm =
inherited

Normalization factor.

Inherited from: \Zend_Search_Lucene_Search_Weight::$$_queryNorm

This value is stored only for query expanation purpose and not used in any other place

Details
Type
float
Inherited_from
\Zend_Search_Lucene_Search_Weight::$$_queryNorm  
Propertyprotectedfloat $_value =
inherited

Weight value

Inherited from: \Zend_Search_Lucene_Search_Weight::$$_value

Weight value may be initialized in sumOfSquaredWeights() or normalize() because they both are invoked either in Query::_initWeight (for top-level query) or in corresponding methods of parent query's weights

Details
Type
float
Inherited_from
\Zend_Search_Lucene_Search_Weight::$$_value  

Methods

methodpublicgetValue() : float
inherited

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 phpDocumentor 2.0.0a8.