From feb7acde3843a39e61d951de09e085dd25b9f75f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simonas=20=C5=A0erlinskas?= <simonas.serlinskas@nfq.com>
Date: Tue, 11 Aug 2015 15:48:09 +0300
Subject: [PATCH] fixed relevant logic

---
 src/SearchEndpoint/QueryEndpoint.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/SearchEndpoint/QueryEndpoint.php b/src/SearchEndpoint/QueryEndpoint.php
index 5c309c9..e51414f 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];
         }
 
-- 
GitLab