Elasticsearch has a lot of small unknown game changing features.  Search templates are one of those. When it suits your use case, it changes a lot your integration quality  TL:DR  Elasticsearch’s Search Template are interesting for :  Simplify integration Give a standard access to your indices without having to create any microservice Separation of concerns Avoid code duplication What is a Search Template?  Search templates are reusable scripts that handle the query complexity and let integrator use very complicated queries…