Elasticsearch Java API for Index Templates

Is there a Java API for creating Index Templates? I'm looking at how to create/check index templates to ensure they are correct.

I've always used default-mappings, and now that 2.0 has removed support for default-mappings, i'm having to find an alternative way of ensuring that index templates are present.

Found what I was looking for under the admin().indices() API location.

1 Like