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.
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.