High Level Rest Client - admin API?

Does the new High Level Rest Client provide an admin API for creating/deleting/updating indices? The documentation indicates that it has no support for admin operations, but I wanted to make sure.

No. Not yet. You need to use the Low Level part for this.

Here is an example where I'm actually extending the HL Client and providing my own admin methods (note the getLowLevelClient() call):

It's super basic but is covering my needs.

Thanks David. Is there a plan/schedule to add admin operations to the HL Rest client?
We are currently using the transport client, and certainly want to switch over to the HL Rest Client, but if admin operations are scheduled to be released relatively soon we'll probably prefer waiting for that instead of re-implementing all of them ourselves.

I'd not expect something coming "soon".

But @javanna can probably tell more about the plan...

We have no clear plans yet. There are quite some APIs that need to be added. You may want to upvote this issue: https://github.com/elastic/elasticsearch/issues/25847 . Also, PRs are welcome! :slight_smile:


When I wrote "soon" I meant something along the ES 6.0 timeline - i.e. near but not immediate future :slight_smile:

Anyway, thanks for the responses guys!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.

The will be added as we go, I assume as part of the 6.x releases. You can also have a look now at a meta issue that lists all the missing API: https://github.com/elastic/elasticsearch/issues/27205 .