CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Builds a set of functions with boosted templates Uses a weight function with a filter for each template. More...
Public Member Functions | |
__construct (SearchConfig $config, $requestedNamespaces, $localSearch, $withDefaultBoosts, $weight) | |
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 boosted templates Uses a weight function with a filter for each template.
The list of boosted templates is read from SearchContext
CirrusSearch\Search\Rescore\BoostTemplatesFunctionScoreBuilder::__construct | ( | SearchConfig | $config, |
$requestedNamespaces, | |||
$localSearch, | |||
$withDefaultBoosts, | |||
$weight ) |
SearchConfig | $config | |
int[] | null | $requestedNamespaces | |
bool | $localSearch | |
bool | $withDefaultBoosts | false to disable the use of default boost templates |
float | $weight |
CirrusSearch\Search\Rescore\BoostTemplatesFunctionScoreBuilder::append | ( | FunctionScore | $container | ) |
Append functions to the function score $container.
FunctionScore | $container |
Implements CirrusSearch\Search\Rescore\BoostFunctionBuilder.