diff --git a/src/Resources/ElasticSearch/ElasticSearchResource.php b/src/Resources/ElasticSearch/ElasticSearchResource.php
index <HASH>..<HASH> 100644
--- a/src/Resources/ElasticSearch/ElasticSearchResource.php
+++ b/src/Resources/ElasticSearch/ElasticSearchResource.php
@@ -144,7 +144,7 @@ class ElasticSearchResource extends Resource
                 }
                 unset($params['body']['from'], $params['body']['size']);
             } else {
-                $where = json_decode($params['where'], true);
+                $where = json_decode($params['where'] ?? '', true);
             }
         }
don't throw exception when filter is not set