## 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) 2006 Zend Technologies USA Inc. (http://www.zend.com)

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

Direct descendents

Class | Description
--- | ---
Zend_Search_Lucene_Search_Weight_MultiTerm |
Zend_Search_Lucene_Search_Weight_Phrase |
Zend_Search_Lucene_Search_Weight_Term |

Method Summary
float getValue ()
void normalize (mixed $norm)
float sumOfSquaredWeights ()
Methods
getValue (line 45)

The weight for this query.

- access: public
- abstract:

float getValue ()

Redefined in descendants as:

- Zend_Search_Lucene_Search_Weight_MultiTerm::getValue() : The weight for this query
- Zend_Search_Lucene_Search_Weight_Phrase::getValue() : The weight for this query
- Zend_Search_Lucene_Search_Weight_Term::getValue() : The weight for this query

normalize (line 59)

Assigns the query normalization factor to this.

- access: public
- abstract:

void normalize (mixed $norm)

Redefined in descendants as:

- Zend_Search_Lucene_Search_Weight_MultiTerm::normalize() : Assigns the query normalization factor to this.
- Zend_Search_Lucene_Search_Weight_Phrase::normalize() : Assigns the query normalization factor to this.
- Zend_Search_Lucene_Search_Weight_Term::normalize() : Assigns the query normalization factor to this.

sumOfSquaredWeights (line 52)

The sum of squared weights of contained query clauses.

- access: public
- abstract:

float sumOfSquaredWeights ()

Redefined in descendants as:

- Zend_Search_Lucene_Search_Weight_MultiTerm::sumOfSquaredWeights() : The sum of squared weights of contained query clauses.
- Zend_Search_Lucene_Search_Weight_Phrase::sumOfSquaredWeights() : The sum of squared weights of contained query clauses.
- Zend_Search_Lucene_Search_Weight_Term::sumOfSquaredWeights() : The sum of squared weights of contained query clauses.

Documentation generated on Tue, 11 Jul 2006 12:18:18 -0500 by phpDocumentor 1.3.0RC6