From 2b93ee9bc0dead2843e4a144e7b3edf8a296a6da Mon Sep 17 00:00:00 2001 From: Aivaras Gotovskis <aivaras.gotovskis@ongr.io> Date: Wed, 1 Jul 2015 15:28:38 +0300 Subject: [PATCH] Make modifier argument optional. In method addFieldValueFactorFunction. Elasticsearch documentation says that it is optional. --- src/Query/FunctionScoreQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Query/FunctionScoreQuery.php b/src/Query/FunctionScoreQuery.php index 9e09a52..19522ed 100644 --- a/src/Query/FunctionScoreQuery.php +++ b/src/Query/FunctionScoreQuery.php @@ -81,7 +81,7 @@ class FunctionScoreQuery implements BuilderInterface * * @return $this */ - public function addFieldValueFactorFunction($field, $factor, $modifier, BuilderInterface $filter = null) + public function addFieldValueFactorFunction($field, $factor, $modifier = 'none', BuilderInterface $filter = null) { $function = [ 'field_value_factor' => [ -- GitLab