From 39afdd383013d4dc24737c51f0f3cf651ab7883d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mantas=20Jonu=C5=A1as?= <mantas.jonusas@nfq.lt> Date: Wed, 25 Feb 2015 14:43:15 +0200 Subject: [PATCH] Code cleanup regarding comments --- Query/ConstantScoreQuery.php | 2 +- Query/FunctionScoreQuery.php | 2 +- Query/MultiMatchQuery.php | 20 ++++++++++---------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Query/ConstantScoreQuery.php b/Query/ConstantScoreQuery.php index 3eb19c1..711dff4 100644 --- a/Query/ConstantScoreQuery.php +++ b/Query/ConstantScoreQuery.php @@ -39,7 +39,7 @@ class ConstantScoreQuery implements BuilderInterface * @param array $parameters * @param string $dslType */ - public function __construct(BuilderInterface $query, array $parameters = [], $dslType = self::USE_FILTER) + public function __construct(BuilderInterface $query, array $parameters = [], $dslType = self::USE_QUERY) { $this->dslType = $dslType; $this->query = $query; diff --git a/Query/FunctionScoreQuery.php b/Query/FunctionScoreQuery.php index f8f0541..1e9f615 100644 --- a/Query/FunctionScoreQuery.php +++ b/Query/FunctionScoreQuery.php @@ -49,7 +49,7 @@ class FunctionScoreQuery implements BuilderInterface BuilderInterface $query, array $functions, array $parameters = [], - $dslType = self::USE_FILTER + $dslType = self::USE_QUERY ) { $this->dslType = $dslType; $this->query = $query; diff --git a/Query/MultiMatchQuery.php b/Query/MultiMatchQuery.php index d221b26..faeaa63 100644 --- a/Query/MultiMatchQuery.php +++ b/Query/MultiMatchQuery.php @@ -18,16 +18,6 @@ use ONGR\ElasticsearchBundle\DSL\BuilderInterface; */ class MultiMatchQuery implements BuilderInterface { - /** - * @param array $fields - * @param string $query - */ - public function __construct(array $fields, $query) - { - $this->fields = $fields; - $this->query = $query; - } - /** * @var array */ @@ -38,6 +28,16 @@ class MultiMatchQuery implements BuilderInterface */ private $query; + /** + * @param array $fields + * @param string $query + */ + public function __construct(array $fields, $query) + { + $this->fields = $fields; + $this->query = $query; + } + /** * {@inheritdoc} */ -- GitLab