# Jest Java index template example?

**URL:** <https://discuss.elastic.co/t/jest-java-index-template-example/32625>\
**Category:** Elasticsearch\
**Created:** [October 20, 2015, 10:55pm UTC](https://discuss.elastic.co/t/jest-java-index-template-example/32625 "2015-10-20T22:55:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeffevans](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jeffevans](https://discuss.elastic.co/u/jeffevans)\
**Post date:** [October 20, 2015, 10:55pm UTC](https://discuss.elastic.co/t/jest-java-index-template-example/32625/1 "2015-10-20T22:55:41Z")

</div>

Hi all,

I'm attempting to use the Jest Java client. There is a readme that provides some documentation [here](https://github.com/searchbox-io/Jest/tree/master/jest). It discusses some integration between the Jest API and ElasticSearch Java API for things like mapping definitions. What I'm attempting to do is define an [index template](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/indices-templates.html). The Jest API appears to have support for this via a class called `PutTemplate`. However, I can't find any example of using this class in conjunction with the built-in ES Java API builder classes. Does anyone have any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:43pm UTC](https://discuss.elastic.co/t/jest-java-index-template-example/32625/2 "2017-07-05T23:43:44Z")

</div>


