# Index template

**URL:** https://discuss.elastic.co/t/index-template/303280
**Category:** Elasticsearch
**Created:** [April 26, 2022, 12:22pm UTC](https://discuss.elastic.co/t/index-template/303280 "2022-04-26T12:22:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![hebph001](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@hebph001](https://discuss.elastic.co/u/hebph001)
#### Post date: [April 26, 2022, 12:22pm UTC](https://discuss.elastic.co/t/index-template/303280/1 "2022-04-26T12:22:15Z")

</div>

Hi Elastic community,

I've enabled mapper size plugin to help me with the sizing of my cloud cluster. I tried to modify an existing Index template with this [API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-template.html#multiple-component-templates) by adding a component template to enable the new meta field with this command:

```auto
PUT /_index_template/template_1
{
  "index_patterns": ["logs-my.dataset-*"],
  "composed_of": ["template1", "template2"]
}

```

It ended up overriding all of the index template settings, only index\_patterns and composed\_of are shown when I call this command compared to what it was displayed before the modification:

```auto
GET _index_template/template_1

```

Fortunately, I've copied the whole settings before updating the template. What did I do wrong? Anytime I want to modify a single setting, I must include all of the settings even if they are not impacted by the change?

Thanks

Philippe

---

<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: [May 24, 2022, 12:22pm UTC](https://discuss.elastic.co/t/index-template/303280/2 "2022-05-24T12:22:58Z")

</div>

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