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

Merge pull request #5 from GrandLTU/optional-parameter

Make modifier argument optional.
parents a08f9247 2b93ee9b
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ class FunctionScoreQuery implements BuilderInterface ...@@ -81,7 +81,7 @@ class FunctionScoreQuery implements BuilderInterface
* *
* @return $this * @return $this
*/ */
public function addFieldValueFactorFunction($field, $factor, $modifier, BuilderInterface $filter = null) public function addFieldValueFactorFunction($field, $factor, $modifier = 'none', BuilderInterface $filter = null)
{ {
$function = [ $function = [
'field_value_factor' => [ 'field_value_factor' => [
......
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