diff --git a/Query/Query.php b/Query/Query.php index 4254c9ce477fb93fe2cda6bd08c98ba748a9986f..95a4ad26fa1361d598cc223d4d4c0279e054cb61 100644 --- a/Query/Query.php +++ b/Query/Query.php @@ -11,7 +11,6 @@ namespace ONGR\ElasticsearchBundle\DSL\Query; -use ONGR\ElasticsearchBundle\DSL\Bool\Bool; use ONGR\ElasticsearchBundle\DSL\BuilderInterface; /** @@ -42,7 +41,7 @@ class Query implements BuilderInterface */ public function __construct($boolParams = []) { - $this->queries = new Bool(); + $this->queries = new BoolQuery(); $this->queries->setParameters($boolParams); } @@ -55,7 +54,7 @@ class Query implements BuilderInterface */ public function addQuery(BuilderInterface $query, $boolType = 'must') { - $this->queries->addToBool($query, $boolType); + $this->queries->add($query, $boolType); } /**