# JSLT or other tool for Elasticsearch search templates management/generation

**URL:** <https://discuss.elastic.co/t/jslt-or-other-tool-for-elasticsearch-search-templates-management-generation/330212>\
**Category:** Elasticsearch\
**Created:** [April 18, 2023, 10:09am UTC](https://discuss.elastic.co/t/jslt-or-other-tool-for-elasticsearch-search-templates-management-generation/330212 "2023-04-18T10:09:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![astrodi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/astrodi/32/117732_2.png) [@astrodi](https://discuss.elastic.co/u/astrodi)\
**Post date:** [April 18, 2023, 10:09am UTC](https://discuss.elastic.co/t/jslt-or-other-tool-for-elasticsearch-search-templates-management-generation/330212/1 "2023-04-18T10:09:38Z")

</div>

Hi there,

does anybody uses JSLT or anything similar for managing or auto-generating [search templates](https://www.elastic.co/guide/en/elasticsearch/reference/8.7/search-template.html) 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  
Dominik

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 30, 2023, 6:55am UTC](https://discuss.elastic.co/t/jslt-or-other-tool-for-elasticsearch-search-templates-management-generation/330212/3 "2023-05-30T06:55:30Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
