CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Builds a set of functions with namespaces. More...
Public Member Functions | |
__construct (SearchConfig $config, $namespaces, $weight, ?NamespaceInfo $namespaceInfo=null) | |
append (FunctionScore $functionScore) | |
Append functions to the function score $container. | |
Public Member Functions inherited from CirrusSearch\Search\Rescore\FunctionScoreBuilder | |
__construct ( $config, $weight) | |
Additional Inherited Members | |
Protected Member Functions inherited from CirrusSearch\Search\Rescore\FunctionScoreBuilder | |
getOverriddenFactor ( $value) | |
Utility method to extract a factor (float) that can be overridden by a config value or an URI param. | |
Protected Attributes inherited from CirrusSearch\Search\Rescore\FunctionScoreBuilder | |
$config | |
$weight | |
Builds a set of functions with namespaces.
Uses a weight function with a filter for each namespace. Activated only if more than one namespace is requested.
CirrusSearch\Search\Rescore\NamespacesFunctionScoreBuilder::__construct | ( | SearchConfig | $config, |
$namespaces, | |||
$weight, | |||
?NamespaceInfo | $namespaceInfo = null ) |
SearchConfig | $config | |
int[] | null | $namespaces | |
float | $weight | |
NamespaceInfo | null | $namespaceInfo |
CirrusSearch\Search\Rescore\NamespacesFunctionScoreBuilder::append | ( | FunctionScore | $container | ) |
Append functions to the function score $container.
FunctionScore | $container |
Implements CirrusSearch\Search\Rescore\BoostFunctionBuilder.