I am planning to migrate from legacy templates to Composable Templates introduced in 7.x.
But with Composable Templates we don't have APIs to feed complete template request string directly or build one using XContentBuilder and supply that as input, unlike in PutIndexTemplateRequest
public PutIndexTemplateRequest source(String templateSource, XContentType xContentType);
public PutIndexTemplateRequest source(XContentBuilder templateBuilder);
Component Templates also have similar shortcomings.
I could see similar concern has been reported earlier
And this has been addressed by providing Builder methods. But its also not very convenient for all the use cases.
We have been extensively using ES licensed version in our project and wanted to know if there are any easier ways to creating templates (just by supplying JSON string).