# Multiple Index Templates - Custom Analyzers

**URL:** <https://discuss.elastic.co/t/multiple-index-templates-custom-analyzers/64790>\
**Category:** Elasticsearch\
**Created:** [November 3, 2016, 1:58am UTC](https://discuss.elastic.co/t/multiple-index-templates-custom-analyzers/64790 "2016-11-03T01:58:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Murfitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryan_murfitt/32/2261_2.png) [@Ryan\_Murfitt](https://discuss.elastic.co/u/Ryan_Murfitt)\
**Post date:** [November 3, 2016, 1:58am UTC](https://discuss.elastic.co/t/multiple-index-templates-custom-analyzers/64790/1 "2016-11-03T01:58:03Z")

</div>

In 2.x I would maintain my index settings in one template, and the individual mappings in seperate templates. But now in 5.0, when creating these individual mapping templates, it's throwing errors saying it can't find my custom analyzers (that are defined in the seperate template).

Has something changed, perhaps where templates are now more rigorously validated at template creation time rather than index creation time?

---

<div class="post-metadata">

**Author:** ![johtani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johtani/32/44956_2.png) [@johtani](https://discuss.elastic.co/u/johtani)\
**Post date:** [November 4, 2016, 2:08am UTC](https://discuss.elastic.co/t/multiple-index-templates-custom-analyzers/64790/2 "2016-11-04T02:08:06Z")

</div>

Yes, in 2.4 and 5.0, we validate each template as a complete mapping and settings.  
See [https://github.com/elastic/elasticsearch/issues/20479#issuecomment-247503358](https://github.com/elastic/elasticsearch/issues/20479#issuecomment-247503358)

And we are thinking [to improve the validation of template](https://github.com/elastic/elasticsearch/issues/21105)

---

<div class="post-metadata">

**Author:** ![Ryan\_Murfitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryan_murfitt/32/2261_2.png) [@Ryan\_Murfitt](https://discuss.elastic.co/u/Ryan_Murfitt)\
**Post date:** [November 6, 2016, 11:02pm UTC](https://discuss.elastic.co/t/multiple-index-templates-custom-analyzers/64790/3 "2016-11-06T23:02:39Z")

</div>

Hmm, looks fairly contentious. I agree with the sentiment though that this is a undocumented breaking change, and it's disappointing this use case wasn't considered.

---

<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:06pm UTC](https://discuss.elastic.co/t/multiple-index-templates-custom-analyzers/64790/4 "2017-07-05T22:06:18Z")

</div>


