Make ElasticSearch template more configurable