Skip to content
Snippets Groups Projects
Commit 5d6df6ef authored by Simonas Šerlinskas's avatar Simonas Šerlinskas
Browse files

Merge pull request #28 from asev/decay_function_fix

options now is optional argument for addDecayFunction.
parents ee124db6 61bfbfb0
No related branches found
No related tags found
No related merge requests found
...@@ -117,10 +117,10 @@ class FunctionScoreQuery implements BuilderInterface ...@@ -117,10 +117,10 @@ class FunctionScoreQuery implements BuilderInterface
BuilderInterface $filter = null BuilderInterface $filter = null
) { ) {
$function = [ $function = [
$type => [ $type => array_merge(
$field => $function, [$field => $function],
], $options
$options ),
]; ];
$this->applyFilter($function, $filter); $this->applyFilter($function, $filter);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment