From 5a83fb8c14149f8089c43c2ee8f9f7821d6150ea Mon Sep 17 00:00:00 2001 From: Aivaras Sev <aivaras.sevelevicius@nfq.com> Date: Thu, 27 Aug 2015 09:31:23 +0300 Subject: [PATCH] options now is option argument for addDecayFunction. closes #27 --- src/Query/FunctionScoreQuery.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Query/FunctionScoreQuery.php b/src/Query/FunctionScoreQuery.php index 68f51b4..990297e 100644 --- a/src/Query/FunctionScoreQuery.php +++ b/src/Query/FunctionScoreQuery.php @@ -117,10 +117,10 @@ class FunctionScoreQuery implements BuilderInterface BuilderInterface $filter = null ) { $function = [ - $type => [ - $field => $function, - ], - $options + $type => array_merge( + [$field => $function], + $options + ) ]; $this->applyFilter($function, $filter); -- GitLab