# Timestamp attribute mapping as text(this existing mapping not working for newly created indices )

**URL:** <https://discuss.elastic.co/t/timestamp-attribute-mapping-as-text-this-existing-mapping-not-working-for-newly-created-indices/333156>\
**Category:** Elasticsearch\
**Created:** [May 11, 2023, 5:46am UTC](https://discuss.elastic.co/t/timestamp-attribute-mapping-as-text-this-existing-mapping-not-working-for-newly-created-indices/333156 "2023-05-11T05:46:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dnyaneshwar\_Chavan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dnyaneshwar_chavan/32/120798_2.png) [@Dnyaneshwar\_Chavan](https://discuss.elastic.co/u/Dnyaneshwar_Chavan)\
**Post date:** [May 11, 2023, 5:46am UTC](https://discuss.elastic.co/t/timestamp-attribute-mapping-as-text-this-existing-mapping-not-working-for-newly-created-indices/333156/1 "2023-05-11T05:46:36Z")

</div>

I am using dynamic indices creation with _template  
{  
"base\_index\_dev" : {  
"order" : 0,  
"index\_patterns" : [  
"dev\_shipments__",  
"dev\_shipment\_legs\__",  
"dev\_transport\_orders\_\*"  
],  
"settings" : {  
"index" : {  
"default\_pipeline" : "timestamp"  
}  
},  
"mappings" : {  
"dynamic\_date\_formats" : [  
"MM-dd-yyyy HH:mm:ss.SSS"  
],  
"date\_detection" : true,  
"properties" : {  
"shipmentReferences" : {  
"type" : "nested"  
},  
"shipmentStops" : {  
"type" : "nested"  
}  
}  
},  
"aliases" : { }  
}  
}  
It was working fine earlier but not working now and mapping timestamp field as text

elastic version: 7.11.1

---

<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:** [June 8, 2023, 5:46am UTC](https://discuss.elastic.co/t/timestamp-attribute-mapping-as-text-this-existing-mapping-not-working-for-newly-created-indices/333156/2 "2023-06-08T05:46:55Z")

</div>

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