title: List all available indices via Java API
body: <p>How to get a list of all available indices via the Java API?</p>
  
  <p>With REST it's just the following HTTP-Request:</p>
  
  <pre><code>http://XXX.XXX.XXX.XXX:9200/_aliases
  </code></pre>
  
  <p>But for consistency it would be nice to do this via the Java API.</p>