javaelasticsearchelasticsearch-jest

How to get a List of Indices from ElasticSearch using Jest


I'm trying to retrieve a list of indices using Jest, but I just got as far as:

Stats statistics = new Stats.Builder().build();
result = client.execute(statistics);

How can i retrieve the list of indices from the result? Do I have to use something else than Stats? It would also help if someone could show me a detailed documentation of Jest. The basics are really well documented, but with the different kinds of builders I'm really lost at the moment.


Solution

  • Get Aliases will give you all the aliases for the indices on a node.