Create multiple indicies mapping at one elasticsearch

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

Look at index templates instead - 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)

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