Template within a template

Is there any way to call a template within a template. For example, in python, I have 3 functions that create JSON of queries that I call to combine into a bigger template to query.

So I have (basically):

match = {query: {bool: {should: [match_1, match_2, match_3]}}}

I want to be able to create an elasticsearch template for match that calls templates for match_1, match_2, and match_3 instead of having to hardcode those queries into one template.

Thanks!

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