Add ability to set an elasticsearch template