High Level Rest Client client.inces().create(...) is deprecated

what is the replacement method for this?


You did not share your code so hard to tell.
Wild guess is that you just need to add , RequestOptions.DEFAULT); as shown in the documentation.

Perhaps I am not quite familiar with Elasticsearch REST APIs yet ...
For example, the CreateIndexRequest come from 2 different packages:


So between the CreateIndexRequest, CreateIndexResponse and AcknowledgedResponse,
I am all confused.

Thank you for your help. I got it working now

client.indices().create(request, RequestOptions.DEFAULT)

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