# ES Indices created by component/index template has mismatch in specified data type

**URL:** <https://discuss.elastic.co/t/es-indices-created-by-component-index-template-has-mismatch-in-specified-data-type/284878>\
**Category:** Elasticsearch\
**Created:** [September 22, 2021, 1:58pm UTC](https://discuss.elastic.co/t/es-indices-created-by-component-index-template-has-mismatch-in-specified-data-type/284878 "2021-09-22T13:58:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shreesh\_Narayanan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shreesh_narayanan/32/87312_2.png) [@Shreesh\_Narayanan](https://discuss.elastic.co/u/Shreesh_Narayanan)\
**Post date:** [September 22, 2021, 1:58pm UTC](https://discuss.elastic.co/t/es-indices-created-by-component-index-template-has-mismatch-in-specified-data-type/284878/1 "2021-09-22T13:58:24Z")

</div>

Hello,

I'm using component templates to define mapping and data types (such as long/integer/IP) and have the index templates which inherit these properties . However when the indices are created , the data types are all in "text/keyword" format .

what am i doing wrong ? I created templates on kibana's UI instead of APIs (in case if this makes any difference)

How do i keep the data types/mappings consistent ?

 ![Screen Shot 2021-09-22 at 7.16.47 PM](https://us1.discourse-cdn.com/elastic/original/3X/d/6/d667928367819d570ab635fa2a6efe1aef59c2a2.jpeg)  
 ![Screen Shot 2021-09-22 at 7.26.27 PM](https://us1.discourse-cdn.com/elastic/original/3X/c/b/cb7004c19ad12da44c24f06dc10f74e21e09faf0.jpeg)  
 ![Screen Shot 2021-09-22 at 7.26.37 PM](https://us1.discourse-cdn.com/elastic/original/3X/a/c/ac34c06aa6e7d496fcc2c8befd4eef844dc3da4d.jpeg)  
 ![Screen Shot 2021-09-22 at 7.26.48 PM](https://us1.discourse-cdn.com/elastic/original/3X/9/c/9c22d106fb2cd8653040ac021ee1c701eb7cb6da.jpeg)

---

<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:** [October 20, 2021, 1:58pm UTC](https://discuss.elastic.co/t/es-indices-created-by-component-index-template-has-mismatch-in-specified-data-type/284878/2 "2021-10-20T13:58:48Z")

</div>

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