implement Elasticsearch index template generator