public addFunction ( string $functionType, array | float $functionParams, AbstractQuery $filter = null, float $weight = null ) | ||
$functionType | string | valid values are DECAY_* constants and script_score |
$functionParams | array | float | the body of the function. See documentation for proper syntax. |
$filter | AbstractQuery | optional filter to apply to the function |
$weight | float | function weight |