# ElasticSearch dynamic\_date\_formats is not working if there is a mapping in the index (even if empty)

**URL:** https://discuss.elastic.co/t/elasticsearch-dynamic-date-formats-is-not-working-if-there-is-a-mapping-in-the-index-even-if-empty/21686
**Category:** Elasticsearch
**Created:** [January 16, 2015, 12:29pm UTC](https://discuss.elastic.co/t/elasticsearch-dynamic-date-formats-is-not-working-if-there-is-a-mapping-in-the-index-even-if-empty/21686 "2015-01-16T12:29:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ipatios\_Asmanidis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ipatios_asmanidis/32/994_2.png) [@Ipatios\_Asmanidis](https://discuss.elastic.co/u/Ipatios_Asmanidis)
#### Post date: [January 16, 2015, 12:29pm UTC](https://discuss.elastic.co/t/elasticsearch-dynamic-date-formats-is-not-working-if-there-is-a-mapping-in-the-index-even-if-empty/21686/1 "2015-01-16T12:29:06Z")

</div>

Using version : 1.4.2  
OS: Ubuntu Linux 14.04  
JVM: 1.7

Here is how you can reproduce the issue ... you will see that in the first  
case the myfield properties is applied only ... and in the second  
everything looks normal ...

> <https://gist.github.com/ypasmk/df441c24a7de0f8ceb69>

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/43acfdf5-297c-43bd-91e5-45488216c369%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/43acfdf5-297c-43bd-91e5-45488216c369%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![SergeyTsalkov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergeytsalkov/32/963_2.png) [@SergeyTsalkov](https://discuss.elastic.co/u/SergeyTsalkov)
#### Post date: [January 26, 2015, 9:26am UTC](https://discuss.elastic.co/t/elasticsearch-dynamic-date-formats-is-not-working-if-there-is-a-mapping-in-the-index-even-if-empty/21686/2 "2015-01-26T09:26:22Z")

</div>

I'm having this problem as well. I opened a bug for it  
here: [dynamic\_date\_formats ignored if dynamic\_templates for date is present · Issue #9410 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/9410)

On Friday, January 16, 2015 at 4:29:06 AM UTC-8, Ipatios Asmanidis wrote:

> Using version : 1.4.2  
> OS: Ubuntu Linux 14.04  
> JVM: 1.7
> 
> Here is how you can reproduce the issue ... you will see that in the first  
> case the myfield properties is applied only ... and in the second  
> everything looks normal ...
> 
> [ElasticSearch dynamic\_date\_formats is not applied if there is a mapping created with the index · GitHub](https://gist.github.com/ypasmk/df441c24a7de0f8ceb69)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3f3379be-6ecf-4181-b772-14ebae829880%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3f3379be-6ecf-4181-b772-14ebae829880%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:36am UTC](https://discuss.elastic.co/t/elasticsearch-dynamic-date-formats-is-not-working-if-there-is-a-mapping-in-the-index-even-if-empty/21686/3 "2017-07-06T00:36:41Z")

</div>


