Abstract Class Zend_Search_Lucene_Search_Weight

Description

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.

  • abstract:
  • license: New BSD License
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Search/Lucene/Search/Weight.php (line 38)


	
			
Direct descendents
Variable Summary
 float $_queryNorm
 float $_value
Method Summary
 float getValue ()
 void normalize ($norm $norm)
Variables
float $_queryNorm (line 46)

Normalization factor.

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

  • access: protected
float $_value (line 57)

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

  • access: protected
Methods
getValue (line 65)

The weight for this query.

  • access: public
float getValue ()

Redefined in descendants as:
normalize (line 82)

Assigns the query normalization factor to this.

  • access: public
  • abstract:
void normalize ($norm $norm)
  • $norm $norm

Redefined in descendants as:
sumOfSquaredWeights (line 75)

The sum of squared weights of contained query clauses.

  • access: public
  • abstract:
float sumOfSquaredWeights ()

Redefined in descendants as:

Documentation generated on Wed, 21 Feb 2007 12:01:33 -0800 by phpDocumentor 1.3.1