# Applying same mapping to all types in an index

**URL:** <https://discuss.elastic.co/t/applying-same-mapping-to-all-types-in-an-index/44412>\
**Category:** Elasticsearch\
**Created:** [March 15, 2016, 9:43am UTC](https://discuss.elastic.co/t/applying-same-mapping-to-all-types-in-an-index/44412 "2016-03-15T09:43:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codersam88](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@codersam88](https://discuss.elastic.co/u/codersam88)\
**Post date:** [March 15, 2016, 9:43am UTC](https://discuss.elastic.co/t/applying-same-mapping-to-all-types-in-an-index/44412/1 "2016-03-15T09:43:32Z")

</div>

Hi!

I record certain information daily.  
For the convenience of searching data across different range of days, I store data of a day in its own **type** with the name of **type** as yyyy-mm-dd.  
I want certain field in this type to be not-analyzed. So I was wondering if there is any way we can specify mapping for all types in an index.

---

<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 5, 2017, 11:08pm UTC](https://discuss.elastic.co/t/applying-same-mapping-to-all-types-in-an-index/44412/2 "2017-07-05T23:08:24Z")

</div>


