diff --git a/src/SearchEndpoint/QueryEndpoint.php b/src/SearchEndpoint/QueryEndpoint.php index 52f50597fbe57f0dd6eb4ed35c39c06f3d90ab78..eef6822622543a090f7bc114a9eb9d45fb8da572 100644 --- a/src/SearchEndpoint/QueryEndpoint.php +++ b/src/SearchEndpoint/QueryEndpoint.php @@ -73,7 +73,7 @@ class QueryEndpoint extends AbstractSearchEndpoint implements OrderedNormalizerI public function addToBool(BuilderInterface $builder, $boolType = null, $key = null) { if (!$this->bool) { - $this->bool = $this->createBoolInstance(); + $this->bool = $this->getBoolInstance(); } $this->bool->add($builder, $boolType, $key); @@ -100,7 +100,7 @@ class QueryEndpoint extends AbstractSearchEndpoint implements OrderedNormalizerI * * @return BoolQuery */ - protected function createBoolInstance() + protected function getBoolInstance() { return new BoolQuery(); }