Skip to content

Commit 5d6df6e

Browse files
committed
Merge pull request #28 from asev/decay_function_fix
options now is optional argument for addDecayFunction.
2 parents ee124db + 61bfbfb commit 5d6df6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Query/FunctionScoreQuery.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ public function addDecayFunction(
117117
BuilderInterface $filter = null
118118
) {
119119
$function = [
120-
$type => [
121-
$field => $function,
122-
],
123-
$options
120+
$type => array_merge(
121+
[$field => $function],
122+
$options
123+
),
124124
];
125125

126126
$this->applyFilter($function, $filter);

0 commit comments

Comments
 (0)