CirrusSearch
Elasticsearch-powered search for MediaWiki
|
This is useful to check if the function score is empty Function score builders may not add any function if some criteria are not met. More...
Public Member Functions | |
addFunction (string $functionType, $functionParams, ?AbstractQuery $filter=null, ?float $weight=null) | |
isEmptyFunction () | |
getSize () | |
Protected Member Functions | |
_getBaseName () | |
Default elastica behaviour is to use class name as property name. | |
This is useful to check if the function score is empty Function score builders may not add any function if some criteria are not met.
If there's no function we should not not build the rescore query.
|
protected |
Default elastica behaviour is to use class name as property name.
We must override this function to force the name to function_score
CirrusSearch\Search\Rescore\FunctionScoreDecorator::getSize | ( | ) |
CirrusSearch\Search\Rescore\FunctionScoreDecorator::isEmptyFunction | ( | ) |