private String updateIndexName(String type) {
        String indexName =
                this.indexPrefix + "_" + type + "_" + SIMPLE_DATE_FORMAT.format(new Date());
        try {
            addIndex(indexName);
            return indexName;
        } catch (IOException e) {
            LOGGER.error("Failed to update log index name: {}", indexName, e);
            throw new NonTransientException("Failed to update log index name: " + indexName, e);
        }
    }
Initializes the index with the required templates and mappings.
es6-persistence/src/main/java/com/netflix/conductor/es6/dao/index/ElasticSearchRestDAOV6.java