Getting index health

Hi All,

How can I get the health status of each index through java API (

I am able to read all the value except the health for each index through transportclient admin.



Hi Thiago,
I am looking for JAVA API to get status of each index.

JAVA API does not expose _cat API.

But have a look at client.admin().cluster()

It will give you access to the cluster health.

Hope this helps.

BTW, have a look at _cat API Java source code. It could help you.

1 Like