configurable elasticsearch template