CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Builds a script score boost documents on the timestamp field. More...
Public Member Functions | |
__construct (SearchConfig $config, $weight, $halfLife, $decayPortion) | |
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 script score boost documents on the timestamp field.
Can be initialized by config for full text and by special syntax in user query
CirrusSearch\Search\Rescore\PreferRecentFunctionScoreBuilder::__construct | ( | SearchConfig | $config, |
$weight, | |||
$halfLife, | |||
$decayPortion ) |
SearchConfig | $config | |
float | $weight | |
float | $halfLife | |
float | $decayPortion |
CirrusSearch\Search\Rescore\PreferRecentFunctionScoreBuilder::append | ( | FunctionScore | $container | ) |
Append functions to the function score $container.
FunctionScore | $container |
Implements CirrusSearch\Search\Rescore\BoostFunctionBuilder.