# Template

**URL:** <https://discuss.elastic.co/t/template/55102>\
**Category:** Elasticsearch\
**Created:** [July 9, 2016, 2:46am UTC](https://discuss.elastic.co/t/template/55102 "2016-07-09T02:46:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacksu](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@jacksu](https://discuss.elastic.co/u/jacksu)\
**Post date:** [July 9, 2016, 2:46am UTC](https://discuss.elastic.co/t/template/55102/1 "2016-07-09T02:46:21Z")

</div>

if one template name is template\_one, args "template":"a\*";another name is template\_two,args "template":"aa\*".If i create index name is "aa\_20160709",which template will use.The args just is the simple wildcard，not is regax.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 10, 2016, 6:10pm UTC](https://discuss.elastic.co/t/template/55102/2 "2016-07-10T18:10:12Z")

</div>

Have you read [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html#multiple-templates](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html#multiple-templates)?

---

<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, 10:36pm UTC](https://discuss.elastic.co/t/template/55102/3 "2017-07-05T22:36:46Z")

</div>


