Search/Lucene/Search/Weight/MultiTerm.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Search_Lucene  
Subpackage
Search  
Version
$Id$  

\Zend_Search_Lucene_Search_Weight_MultiTerm

Package: Zend_Search_Lucene\Search
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.
Parent(s)
\Zend_Search_Lucene_Search_Weight
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprivate\Zend_Search_Lucene_Search_Query $_query
The query that this concerns.
>VPropertyprivate\Zend_Search_Lucene_Interface $_reader
IndexReader.
>VPropertyprivatearray $_weights
Query terms weights Array of Zend_Search_Lucene_Search_Weight_Term
Details
Type
array

Methods

methodpublic__construct(\Zend_Search_Lucene_Search_Query $query, \Zend_Search_Lucene_Interface $reader) : void

Zend_Search_Lucene_Search_Weight_MultiTerm constructor query - the query that this concerns.

reader - index reader
Parameters
NameTypeDescription
$query\Zend_Search_Lucene_Search_Query
$reader\Zend_Search_Lucene_Interface
methodpublicgetValue() : float

The weight for this query Standard Weight::$_value is not used for boolean queries

Returns
TypeDescription
float
methodpublicnormalize(float $queryNorm) : void

Assigns the query normalization factor to this.

Parameters
NameTypeDescription
$queryNormfloat
methodpublicsumOfSquaredWeights() : float

The sum of squared weights of contained query clauses.

Returns
TypeDescription
float
Documentation was generated by phpDocumentor 2.2.0 .