ElasticSearch 6.2

How can I update existing index mapping/settings by java high level rest client. I do not see PutMapping is released yet. Any pointer how to do that with current version.
I tried to use lowlevel client with PUT method, but I got index_already_exists_exception.

client.performRequest("PUT", "/index12",
map, entity, new BasicHeader("content-type","application/json"));

Hi @neelam.mamtani,

sorry, put mapping isn't available in the High Level Client in 6.2, but we are in the process of adding more functionality to it in future minor versions. In the meanwhile the low level client it the only option.
Not sure about the exception, but the index might already exist really. Have you checked?

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