elasticsearch - List all available indices via Java API -


How to get a list of all the available indices through the Java API?

With REST, this is just the following HTTP-R to: http: //www.XXX.XXX:9200/_aliases

But for stability, it would be good to do this via Java API.

The equivalent of using the Java API and Flexible code org.elasticsearch .client.Client class is:

  client.admin (). Cluster () .prepareState () Execute () .actionGet () GetState () .getMetaData () .aliases ();  

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -