# Include\_type\_name deprecation when making Index Templates in V7.x

**URL:** https://discuss.elastic.co/t/include-type-name-deprecation-when-making-index-templates-in-v7-x/186735
**Category:** Elasticsearch
**Created:** [June 20, 2019, 5:10pm UTC](https://discuss.elastic.co/t/include-type-name-deprecation-when-making-index-templates-in-v7-x/186735 "2019-06-20T17:10:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Vincent\_Stevenson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vincent_stevenson/32/48477_2.png) [@Vincent\_Stevenson](https://discuss.elastic.co/u/Vincent_Stevenson)
#### Post date: [June 20, 2019, 5:10pm UTC](https://discuss.elastic.co/t/include-type-name-deprecation-when-making-index-templates-in-v7-x/186735/1 "2019-06-20T17:10:32Z")

</div>

Hi,

We are defining mappings within index templates in Elastic. In V6.x, I could PUT the following JSON to make a template:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1a9d364f079a996bf9e6377509760534e933b59c.png)

Now when I try to create the same exact template in V7.x, I get the error message:  
{  
"error": {  
"root\_cause": [  
{  
"type": "mapper\_parsing\_exception",  
"reason": "Root mapping definition has unsupported parameters: [item : {properties={search\_all={search\_analyzer=search\_analyzer, analyzer=index\_analyzer, type=text}}}]"  
}  
],  
"type": "mapper\_parsing\_exception",  
"reason": "Failed to parse mapping [\_doc]: Root mapping definition has unsupported parameters: [item : {properties={search\_all={search\_analyzer=search\_analyzer, analyzer=index\_analyzer, type=text}}}]",  
"caused\_by": {  
"type": "mapper\_parsing\_exception",  
"reason": "Root mapping definition has unsupported parameters: [item : {properties={search\_all={search\_analyzer=search\_analyzer, analyzer=index\_analyzer, type=text}}}]"  
}  
},  
"status": 400  
}

Can I set include\_type\_name to true within my template? How do I migrate the mappings from my templates into V7.x?

Thanks

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [June 20, 2019, 5:31pm UTC](https://discuss.elastic.co/t/include-type-name-deprecation-when-making-index-templates-in-v7-x/186735/2 "2019-06-20T17:31:37Z")

</div>

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

For example here I can't copy and paste and give you a solution ready to use.  
Anyway, you need to remove `"item"` key.

---

<div class="post-metadata">

### Author: ![Vincent\_Stevenson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vincent_stevenson/32/48477_2.png) [@Vincent\_Stevenson](https://discuss.elastic.co/u/Vincent_Stevenson)
#### Post date: [June 20, 2019, 5:40pm UTC](https://discuss.elastic.co/t/include-type-name-deprecation-when-making-index-templates-in-v7-x/186735/3 "2019-06-20T17:40:12Z")

</div>

Sorry about that. Thank you, it works!

---

<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 18, 2019, 5:40pm UTC](https://discuss.elastic.co/t/include-type-name-deprecation-when-making-index-templates-in-v7-x/186735/4 "2019-07-18T17:40:26Z")

</div>

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