# Create multiple indicies mapping at one elasticsearch

**URL:** https://discuss.elastic.co/t/create-multiple-indicies-mapping-at-one-elasticsearch/260162
**Category:** Elasticsearch
**Created:** [January 5, 2021, 6:49am UTC](https://discuss.elastic.co/t/create-multiple-indicies-mapping-at-one-elasticsearch/260162 "2021-01-05T06:49:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tahseen\_fatima](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tahseen_fatima/32/67789_2.png) [@tahseen\_fatima](https://discuss.elastic.co/u/tahseen_fatima)
#### Post date: [January 5, 2021, 6:49am UTC](https://discuss.elastic.co/t/create-multiple-indicies-mapping-at-one-elasticsearch/260162/1 "2021-01-05T06:49:20Z")

</div>

Hi,

I have a scenario where my index name is changing frequently, I want to create index mapping at one go. with **my-index-** \*

But I am not able to create at one go.

```
PUT /my-index-*/_mapping
{
  "properties": {
    "email": {
      "type": "keyword"
........................................
    }
  }
}

```

Kindly help,  
Tahseen

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 5, 2021, 6:51am UTC](https://discuss.elastic.co/t/create-multiple-indicies-mapping-at-one-elasticsearch/260162/2 "2021-01-05T06:51:59Z")

</div>

Look at index templates instead - [https://www.elastic.co/guide/en/elasticsearch/reference/7.10/index-templates.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/index-templates.html) (or [https://www.elastic.co/guide/en/elasticsearch/reference/7.10/indices-templates-v1.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/indices-templates-v1.html))

---

<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: [February 2, 2021, 6:52am UTC](https://discuss.elastic.co/t/create-multiple-indicies-mapping-at-one-elasticsearch/260162/3 "2021-02-02T06:52:08Z")

</div>

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