Skip to content

Commit

Permalink
Indices/Stats endpoint should implode multi-valued metric parameters …
Browse files Browse the repository at this point in the history
…into a single string
  • Loading branch information
polyfractal committed Mar 3, 2015
1 parent 4e20088 commit 7de37d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Elasticsearch/Endpoints/Indices/Stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public function setMetric($metric)
return $this;
}

if (is_array($metric)) {
$metric = implode(",", $metric);
}

$this->metric = $metric;
return $this;
}
Expand Down

0 comments on commit 7de37d2

Please sign in to comment.