Add a script_score function to the query.
public addScriptScoreFunction ( Elastica\Script\AbstractScript $script, AbstractQuery $filter = null, float $weight = null ) | ||
$script | Elastica\Script\AbstractScript | a Script object |
$filter | AbstractQuery | an optional filter to apply to the function |
$weight | float | the weight of the function |