Skip to content
Snippets Groups Projects
Commit b05246a9 authored by Martynas Sudintas's avatar Martynas Sudintas
Browse files

function script score options are now being merged

parent 68ac04e2
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