diff --git a/src/Abstracts/AbstractResultParser.php b/src/Abstracts/AbstractResultParser.php index 75f6e71..c74089a 100644 --- a/src/Abstracts/AbstractResultParser.php +++ b/src/Abstracts/AbstractResultParser.php @@ -51,7 +51,7 @@ public function get($key, $default = null) */ public function getTotal() { - return $this->get('hits.total'); + return $this->get('hits.total')['value']; } /**