diff --git a/src/Elasticsearch/Namespaces/IndicesNamespace.php b/src/Elasticsearch/Namespaces/IndicesNamespace.php index db4115f77..dd2d5f956 100644 --- a/src/Elasticsearch/Namespaces/IndicesNamespace.php +++ b/src/Elasticsearch/Namespaces/IndicesNamespace.php @@ -232,7 +232,7 @@ public function delete($params = array()) */ public function stats($params = array()) { - $metric = $this->extractArgument($params, '$metric'); + $metric = $this->extractArgument($params, 'metric'); $index = $this->extractArgument($params, 'index');