title: Get list of index names matching pattern from elastic search - JAVA
body: <p>I have a list of indexes in elastic search as follow:</p>
  
  <pre><code>index1, index2, index3, test-index1, test-index2, test-index3
  </code></pre>
  
  <p>Now I want only those indexes that matches my pattern "test-*".</p>
  
  <p>I can achieve the above result by following sense query:</p>
  
  <pre><code>GET test-*/_aliases
  </code></pre>
  
  <p>I want to achieve the same result from java code.</p>