After migrating to elasticsearch 6.7 create index, exist index API's of JAVA REST HIGH API were deprecated


I have just migrated from elasticsearch 6.6 to 6.7.

I have created my index using the below guide.

But the create method is showing me as deprecated. But it is not shown as deprecated in the guide.


Which is the correct method to use?

Any help here.


There's another create() method with a different request type, org.elasticsearch.client.indices.CreateIndexRequest, that you should use instead. This is mentioned in the @deprecated Javadocs.


Basically change your import:

import org.elasticsearch.client.indices.CreateIndexRequest;
1 Like

Thank you,
The problem is solved.

Thank you.
It solved the problem.

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