# Dynamic Mapping with properties

**URL:** <https://discuss.elastic.co/t/dynamic-mapping-with-properties/121759>\
**Category:** Elasticsearch\
**Created:** [February 28, 2018, 1:08am UTC](https://discuss.elastic.co/t/dynamic-mapping-with-properties/121759 "2018-02-28T01:08:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavithrakc](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@pavithrakc](https://discuss.elastic.co/u/pavithrakc)\
**Post date:** [February 28, 2018, 1:08am UTC](https://discuss.elastic.co/t/dynamic-mapping-with-properties/121759/1 "2018-02-28T01:08:39Z")

</div>

Hello all,

I am trying to use dynamic templates for all my string fields with an exception of my Time field so that I can set that one as type 'date'.

I need to use these fields("TransactTime\_Tag\_60" and "ExpireDate\_Tag\_432") as "Time Filter field" in Kibana while configuring the index pattern.

Mappings I have tried:

1. defining properties and dynamic template for all string values

> <https://gist.github.com/pavithrachandrakasu/26f77f2952cdb092f6547d76a7e9d448>

1. Defining two dynamic templates to resolve this issue:

> <https://gist.github.com/pavithrachandrakasu/1c8db1fb231b2b4da984221a49a05d91>

Both these versions , still take "TransactTime\_Tag\_60" and "ExpireDate\_Tag\_432" as string fields and not as date.

Am I missing something here?

thanks,  
Pavithra

---

<div class="post-metadata">

**Author:** ![pavithrakc](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@pavithrakc](https://discuss.elastic.co/u/pavithrakc)\
**Post date:** [February 28, 2018, 3:13pm UTC](https://discuss.elastic.co/t/dynamic-mapping-with-properties/121759/3 "2018-02-28T15:13:44Z")

</div>

Any updates on this one?

---

<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:** [February 28, 2018, 3:25pm UTC](https://discuss.elastic.co/t/dynamic-mapping-with-properties/121759/4 "2018-02-28T15:25:11Z")

</div>

Read [this](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and specifically the "Also be patient" part.

---

<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:** [March 28, 2018, 3:25pm UTC](https://discuss.elastic.co/t/dynamic-mapping-with-properties/121759/5 "2018-03-28T15:25:26Z")

</div>

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