\Zend_Search_Lucene_Search_Weight
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.
- Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Search_Lucene_Search_Weight
{
- // members
- protected $_queryNorm;
- protected $_value;
- // methods
- public float getValue()
- public abstract float sumOfSquaredWeights()
- public abstract void normalize()
Members
protected
- $_queryNorm
—
float
Normalization factor. - $_value
—
float
Weight value
Methods
public
- getValue() — The weight for this query.
- normalize() — Assigns the query normalization factor to this.
- sumOfSquaredWeights() — The sum of squared weights of contained query clauses.