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.

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


	
			
Direct descendents
Method Summary
 float getValue ()
 void normalize ($norm $norm)
Methods
getValue (line 43)

The weight for this query.

  • access: public
  • abstract:
float getValue ()

Redefined in descendants as:
normalize (line 57)

Assigns the query normalization factor to this.

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

Redefined in descendants as:
sumOfSquaredWeights (line 50)

The sum of squared weights of contained query clauses.

  • access: public
  • abstract:
float sumOfSquaredWeights ()

Redefined in descendants as:

Documentation generated on Tue, 18 Apr 2006 11:55:49 -0700 by phpDocumentor 1.3.0RC3