title: ElasticSearch Get Index Names and Store Size
body: <p>I am attempting to capture a list of all the indexes and their sizes in a way that I could capture the information using Angular's $http service and then iterate through the information using the ng-repeat preferably with something like:</p>
  
  <p><code>&lt;ul ng-repeat="elsindex in elsIndexHttpResponse"&gt;
      &lt;li&gt;{{elsindex.name}}:{{elsindex.size}}&lt;/li&gt;
  &lt;/ul&gt;</code></p>
  
  <p>The closest thing I have found is this:
  <a href="http://localhost:9200/_cat/indices?h=index,store.size" rel="noreferrer">http://localhost:9200/_cat/indices?h=index,store.size</a></p>
  
  <p>Except:</p>
  
  <p>a. its responses are not in json so easily referencing it using the ng-repeat <code>&lt;li&gt;</code> elements isn't going to work; and</p>
  
  <p>b. i would like, if possible, to get the size output to reflect the same unit size (like bytes).</p>
  
  <p>If this involves something complicated then I'd be grateful for pointers on where I should focus.</p>
  
  <p>I am using elasticsearch v1.4.4</p>
  
  <p>Many thanks</p>