# Index Mappings

**URL:** <https://discuss.elastic.co/t/index-mappings/7234>\
**Category:** Elasticsearch\
**Created:** [April 4, 2012, 10:51pm UTC](https://discuss.elastic.co/t/index-mappings/7234 "2012-04-04T22:51:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![quain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/quain/32/2925_2.png) [@quain](https://discuss.elastic.co/u/quain)\
**Post date:** [April 4, 2012, 10:51pm UTC](https://discuss.elastic.co/t/index-mappings/7234/1 "2012-04-04T22:51:49Z")

</div>

Hi,  
I'm reading the document about Mappings here  
([http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index.html](http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index.html)).  
Is there a way to define a mapping/properties for every type in an index?  
For example, for all types in index x, I want to have a field called "name"  
that have the same properties across the board. Is there a way to specify  
that?

Thanks.

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [April 4, 2012, 11:05pm UTC](https://discuss.elastic.co/t/index-mappings/7234/2 "2012-04-04T23:05:47Z")

</div>

Hi,

I think you can use index templates:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Note the last example on the above docs page where the '_default_' is used  
to match any type.

You can also take a look at

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Regards,  
Lukas

On Thu, Apr 5, 2012 at 12:51 AM, quain [quaintenance@gmail.com](mailto:quaintenance@gmail.com) wrote:

> Hi,  
> I'm reading the document about Mappings here (  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index.html)).  
> Is there a way to define a mapping/properties for every type in an index?  
> For example, for all types in index x, I want to have a field called "name"  
> that have the same properties across the board. Is there a way to specify  
> that?
> 
> Thanks.

---

<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, 3:33am UTC](https://discuss.elastic.co/t/index-mappings/7234/3 "2017-07-06T03:33:30Z")

</div>


