You are looking at documentation for an older release. Not what you want? See the current release documentation.
Elasticsearch provides a full Java API to deal with administration tasks.
To access them, you need to call
admin() method from a client to get an
AdminClient adminClient = client.admin();
In the rest of this guide, we will use