Thanks for the quick response. Still getting fooled on this one, as all parms and return type for both methods are the same.
When I select the non-deprecated one (based on your indication that I need to select the right one), I still get the same error.
I'm providing the mapping as a JSON string to the request, which varies from the high level REST example which uses XContentType. Could this be an issue?
just for clarification, while the CreateIndexRequest moved to package org.elasticsearch.client.indices
the DeleteIndexRequest stayed in org.elasticsearch.action.admin.indices.delete?
In general, just as an idea/wish, would it be possible in the future to link javadoc or a working example / testcase to the documentation of the client? I think this thread shows that the import part or at least more that just a line without the complete class reference including packages can be helpful.
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.