what is the replacement method for this?
Welcome!
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:
org.elasticsearch.action.admin.indices.create.CreateIndexRequest
org.elasticsearch.client.indices.CreateIndexRequest
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)
.isAcknowledged()
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.