From b5caceb43fd6765e5d0211a67c42dca903bde069 Mon Sep 17 00:00:00 2001
From: Martynas Sudintas <martynas.sudintas@ongr.io>
Date: Wed, 29 Apr 2015 13:41:02 +0300
Subject: [PATCH] Changed Bool to BoolQuery in Query class

---
 Query/Query.php | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Query/Query.php b/Query/Query.php
index 4254c9c..95a4ad2 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);
     }
 
     /**
-- 
GitLab