Elasticsearch plugin to support query templates