Skip to content
Snippets Groups Projects
Commit b5caceb4 authored by Martynas Sudintas's avatar Martynas Sudintas
Browse files

Changed Bool to BoolQuery in Query class

parent 654c2aa7
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
/**
......
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