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. * * @package Zend_Search_Lucene * @subpackage Search * @copyright Copyright (c) 2005-2006 Zend Technologies USA Inc. (http://www.zend.com) * @license http://www.zend.com/license/framework/1_0.txt Zend Framework License version 1.0 */ abstract class Zend_Search_Lucene_Search_Weight { /** * The weight for this query. * * @return float */ abstract public function getValue(); /** * The sum of squared weights of contained query clauses. * * @return float */ abstract public function sumOfSquaredWeights(); /** * Assigns the query normalization factor to this. * * @param $norm */ abstract public function normalize($norm); }