# Forbid templateless index creation?

**URL:** <https://discuss.elastic.co/t/forbid-templateless-index-creation/77007>\
**Category:** Elasticsearch\
**Created:** [March 1, 2017, 3:11pm UTC](https://discuss.elastic.co/t/forbid-templateless-index-creation/77007 "2017-03-01T15:11:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasona](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@jasona](https://discuss.elastic.co/u/jasona)\
**Post date:** [March 1, 2017, 3:11pm UTC](https://discuss.elastic.co/t/forbid-templateless-index-creation/77007/1 "2017-03-01T15:11:04Z")

</div>

Is there a way to tell elastic search to not create an index without using a template?

I still want the "automatic" index creation upon first write to a new index, I really don't want elasticsearch (ES) to be guessing about the types of fields--that way lies bad/subtle and hard to figure out corruption bugs. I want ES to _always_ be using a template, or to fail to write and create a new index if there is no appropriate template available.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 5, 2017, 11:27pm UTC](https://discuss.elastic.co/t/forbid-templateless-index-creation/77007/2 "2017-03-05T23:27:18Z")

</div>

I don't think there is a way to enforce that, but it's an interesting use.  
Would you mind creating a feature request on github?

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [March 6, 2017, 1:52am UTC](https://discuss.elastic.co/t/forbid-templateless-index-creation/77007/3 "2017-03-06T01:52:33Z")

</div>

This was opened as [#23463](https://github.com/elastic/elasticsearch/issues/23463).

---

<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:** [April 3, 2017, 1:52am UTC](https://discuss.elastic.co/t/forbid-templateless-index-creation/77007/4 "2017-04-03T01:52:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
