# Default mappings properties when creating index

**URL:** <https://discuss.elastic.co/t/default-mappings-properties-when-creating-index/146537>\
**Category:** Elasticsearch\
**Created:** [August 29, 2018, 1:38pm UTC](https://discuss.elastic.co/t/default-mappings-properties-when-creating-index/146537 "2018-08-29T13:38:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![J0nasty](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@J0nasty](https://discuss.elastic.co/u/J0nasty)\
**Post date:** [August 29, 2018, 1:38pm UTC](https://discuss.elastic.co/t/default-mappings-properties-when-creating-index/146537/1 "2018-08-29T13:38:25Z")

</div>

Hi,

I want to create mappings settings for all types, not only for one.  
So when I have following create index query:

PUT tweets  
{  
"mappings": {  
"typeName": {  
"\_source": {  
"enabled": false  
}  
}  
}  
}

So instead of setting the property of \_source for the type "typeName", I want this property to be set for **all** types instead of defining for all separately. How can I do this?

My elasticsearch version is 6.1.2

---

<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:** [September 26, 2018, 1:38pm UTC](https://discuss.elastic.co/t/default-mappings-properties-when-creating-index/146537/2 "2018-09-26T13:38:38Z")

</div>

Closed on September 26, 2018, 1:38pm UTC

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