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

Merge pull request #35 from martiis/master

Function script score options are now being merged
parents 68ac04e2 b05246a9
No related branches found
No related tags found
No related merge requests found
......@@ -189,11 +189,13 @@ class FunctionScoreQuery implements BuilderInterface
BuilderInterface $filter = null
) {
$function = [
'script_score' => [
'script' => $script,
'params' => $params,
'script_score' => array_merge(
[
'script' => $script,
'params' => $params,
],
$options
],
),
];
$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