# Elastic 5.6 dynamic template mappings \_default\_

**URL:** https://discuss.elastic.co/t/elastic-5-6-dynamic-template-mappings--default-/100988
**Category:** Elasticsearch
**Created:** [September 19, 2017, 8:30am UTC](https://discuss.elastic.co/t/elastic-5-6-dynamic-template-mappings--default-/100988 "2017-09-19T08:30:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gabriel\_tessier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel_tessier/32/27911_2.png) [@gabriel\_tessier](https://discuss.elastic.co/u/gabriel_tessier)
#### Post date: [September 19, 2017, 8:30am UTC](https://discuss.elastic.co/t/elastic-5-6-dynamic-template-mappings--default-/100988/1 "2017-09-19T08:30:02Z")

</div>

Hi,

I'm little confused with the mapping deprecation, I read here:

[https://www.elastic.co/guide/en/elasticsearch/reference/6.x/default-mapping.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.x/default-mapping.html)

I'm creating a new app using the last 5.6 elastic and I have dynamic template mapping defined like in logstash here:

> <https://github.com/elastic/logstash/blob/master/modules/netflow/configuration/elasticsearch/netflow.json>

According to the documentation "_default_" is deprecated in 6.0 so If I use it in 5.6 I'll have deprecation warning when I'll upgrade!  
I prefer to go the correct way now, so I have nothing to do later. But the problem is I don't find in the doc what to use to have the equivalent? What is the correct way to go?

Thanks for any help.

---

<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: [September 19, 2017, 8:34am UTC](https://discuss.elastic.co/t/elastic-5-6-dynamic-template-mappings--default-/100988/2 "2017-09-19T08:34:20Z")

</div>

Instead of using `_default_`, use the actual type that you are passing in.

---

<div class="post-metadata">

### Author: ![gabriel\_tessier](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gabriel_tessier/32/27911_2.png) [@gabriel\_tessier](https://discuss.elastic.co/u/gabriel_tessier)
#### Post date: [September 19, 2017, 8:43am UTC](https://discuss.elastic.co/t/elastic-5-6-dynamic-template-mappings--default-/100988/3 "2017-09-19T08:43:11Z")

</div>

Thanks for the reply, now I get it but my case was not exactly this, sorry for the confusion.

"template": "\*", \<---- I have a top template that will apply to all my indices... 😓

Or does it mean that all my type will be named "unamed" \<--- or whatever generic name?

Ok I got it!!! anyway it make sense in a way that it will be removed so don't care about the name!

It took time but now I got it! 🙆‍♂️

Thanks a lot!

---

<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 17, 2017, 8:43am UTC](https://discuss.elastic.co/t/elastic-5-6-dynamic-template-mappings--default-/100988/4 "2017-10-17T08:43:24Z")

</div>

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