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"));
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?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.