Elastic search templating

How do I include combination queries in tempalate variable,

eg. I want to tempalate a variable based on _type (in the normal procedure -{“find”:“terms”,“field”:"_type"}) for an index where the index value is test_index_1

Any help appreciated

try

{“find”:“terms”,“field”:"_type", "query": "_index:test_index_1"}
1 Like