diff --git a/Query/ConstantScoreQuery.php b/Query/ConstantScoreQuery.php index 3eb19c136fee47eaef5d341893674eb4ca7d7bfe..711dff4a9660a6e08d60e2a65ea3dcf0c3605584 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 f8f05412aac15dc49d900f19be9db86ca8998dc5..1e9f6157d23efc8e26ce5d177446de9568fa3204 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 d221b2691eb6bd1a808195396ddc84151432c765..faeaa63ab4e3b9bc55036aa6920baca8ead9358c 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} */