does anybody uses JSLT or anything similar for managing or auto-generating search templates for Elasticsearch?
I have 13 search templates for different business purposes for one app., but basically there is a lot of common code, duplication (cannot be easily parametrized with mustache).
I would like to find something, that would allow to generate valid ES templates with minimum source code (for example generate 2 templates based on some configuration of filters, aggregations per business unit).
So far I'm doing it manually, but as complexity of the project accumulates, it becomes hardly manageable.
Many thanks for sharing your experience or pointing to any reference, documentation