MultiTerm
extends AbstractWeight
in package
Calculate query weights and build query scorers.
Tags
Table of Contents
Properties
- $_queryNorm : float
- Normalization factor.
- $_value : float
- AbstractWeight value
- $_query : AbstractQuery
- The query that this concerns.
- $_reader : SearchIndexInterface
- IndexReader.
- $_weights : array<string|int, mixed>
- Query terms weights Array of Zend_Search_Lucene_Search_Weight_Term
Methods
- __construct() : mixed
- Zend_Search_Lucene_Search_Weight_MultiTerm constructor query - the query that this concerns.
- getValue() : float
- The weight for this query Standard Weight::$_value is not used for boolean queries
- normalize() : void
- Assigns the query normalization factor to this.
- sumOfSquaredWeights() : float
- The sum of squared weights of contained query clauses.
Properties
$_queryNorm
Normalization factor.
protected
float
$_queryNorm
This value is stored only for query expanation purpose and not used in any other place
$_value
AbstractWeight value
protected
float
$_value
AbstractWeight 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
$_query
The query that this concerns.
private
AbstractQuery
$_query
$_reader
IndexReader.
private
SearchIndexInterface
$_reader
$_weights
Query terms weights Array of Zend_Search_Lucene_Search_Weight_Term
private
array<string|int, mixed>
$_weights
Methods
__construct()
Zend_Search_Lucene_Search_Weight_MultiTerm constructor query - the query that this concerns.
public
__construct(AbstractQuery $query, SearchIndexInterface $reader) : mixed
reader - index reader
Parameters
- $query : AbstractQuery
- $reader : SearchIndexInterface
getValue()
The weight for this query Standard Weight::$_value is not used for boolean queries
public
getValue() : float
Return values
floatnormalize()
Assigns the query normalization factor to this.
public
normalize(float $queryNorm) : void
Parameters
- $queryNorm : float
sumOfSquaredWeights()
The sum of squared weights of contained query clauses.
public
sumOfSquaredWeights() : float