From 4e20088b1fc771ab068c7d22d2df9f44df0138be Mon Sep 17 00:00:00 2001 From: Evgeniy Kuzminov Date: Tue, 3 Mar 2015 12:47:41 +0200 Subject: [PATCH] Fix typo in 'metric' argument of Stats function in IndicesNamespace.php Argument was not correctly extracted, so it was impossible to compose requests like `/_stats/indices` by setting `metric` param Also related to 2.0 and master --- src/Elasticsearch/Namespaces/IndicesNamespace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');