Skip to content

Commit 4b2628b

Browse files
PascalThesingsaimaz
authored andcommitted
fix get bool doctype to get available hints (#274)
1 parent f6298be commit 4b2628b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Search.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private function getEndpoint($type)
223223
/**
224224
* Returns queries inside BoolQuery instance.
225225
*
226-
* @return BuilderInterface
226+
* @return BoolQuery
227227
*/
228228
public function getQueries()
229229
{
@@ -283,7 +283,7 @@ public function addPostFilter(BuilderInterface $filter, $boolType = BoolQuery::M
283283
/**
284284
* Returns queries inside BoolFilter instance.
285285
*
286-
* @return BuilderInterface
286+
* @return BoolQuery
287287
*/
288288
public function getPostFilters()
289289
{

src/SearchEndpoint/SearchEndpointInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace ONGR\ElasticsearchDSL\SearchEndpoint;
1313

1414
use ONGR\ElasticsearchDSL\BuilderInterface;
15+
use ONGR\ElasticsearchDSL\Query\Compound\BoolQuery;
1516
use Symfony\Component\Serializer\Normalizer\NormalizableInterface;
1617

1718
/**
@@ -71,7 +72,7 @@ public function getAll($boolType = null);
7172
/**
7273
* Returns Bool filter or query instance with all builder objects inside.
7374
*
74-
* @return BuilderInterface
75+
* @return BoolQuery
7576
*/
7677
public function getBool();
7778
}

0 commit comments

Comments
 (0)