From 8a9cee270e0c46511c9c930963fd1a877556825a Mon Sep 17 00:00:00 2001
From: Mantas Simkus <mantas.simkus@ongr.io>
Date: Thu, 6 Aug 2015 11:16:08 +0300
Subject: [PATCH] fixed bug for addPostFilter when using wrong Interface

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

diff --git a/src/Search.php b/src/Search.php
index e67cf4a..6529ce4 100644
--- a/src/Search.php
+++ b/src/Search.php
@@ -204,7 +204,7 @@ class Search
     {
         $this
             ->getEndpoint(PostFilterEndpoint::NAME)
-            ->add($filter, $boolType, $key);
+            ->addToBool($filter, $boolType, $key);
 
         return $this;
     }
-- 
GitLab