Is there a replacement for the create method below in the new Java API? Thanks.
PutIndexTemplateRequest request = new PutIndexTemplateRequest(TEMPLATE_NAME);
request.create(false); // Required to allow update and not error out if template exists
request.source(Files.readAllBytes(file.toPath()), XContentType.JSON);
request.patterns(patterns);
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.