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.

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

Located in /Search/Lucene/Search/Weight.php (line 39)


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

Normalization factor.

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

  • access: protected
float $_value (line 58)

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 66)

The weight for this query.

  • access: public
float getValue ()

Redefined in descendants as:
normalize (line 83)

Assigns the query normalization factor to this.

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

Redefined in descendants as:
sumOfSquaredWeights (line 76)

The sum of squared weights of contained query clauses.

  • abstract:
  • access: public
float sumOfSquaredWeights ()

Redefined in descendants as:

Documentation generated on Mon, 21 Jun 2010 15:52:47 -0400 by phpDocumentor 1.4.3