diff --git a/src/SearchEndpoint/QueryEndpoint.php b/src/SearchEndpoint/QueryEndpoint.php index 5c309c9d627a7900710c424df6f3f5b12c3fb719..e51414ffd1f21590a8d7b7fdd3de6a9ef0f24919 100644 --- a/src/SearchEndpoint/QueryEndpoint.php +++ b/src/SearchEndpoint/QueryEndpoint.php @@ -52,7 +52,7 @@ class QueryEndpoint extends AbstractSearchEndpoint implements OrderedNormalizerI $queryArray = $this->bool->toArray(); - if (!$this->bool->isRelevant()) { + if ($this->bool->isRelevant()) { $queryArray = [$this->bool->getType() => $queryArray]; }