# How to change "ignore\_above" property of field in index pattern even index match pattern will be insert in the future?

**URL:** <https://discuss.elastic.co/t/how-to-change-ignore-above-property-of-field-in-index-pattern-even-index-match-pattern-will-be-insert-in-the-future/251208>\
**Category:** Kibana\
**Created:** [October 7, 2020, 4:23am UTC](https://discuss.elastic.co/t/how-to-change-ignore-above-property-of-field-in-index-pattern-even-index-match-pattern-will-be-insert-in-the-future/251208 "2020-10-07T04:23:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![le\_ba\_nam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/le_ba_nam/32/75148_2.png) [@le\_ba\_nam](https://discuss.elastic.co/u/le_ba_nam)\
**Post date:** [October 7, 2020, 4:23am UTC](https://discuss.elastic.co/t/how-to-change-ignore-above-property-of-field-in-index-pattern-even-index-match-pattern-will-be-insert-in-the-future/251208/1 "2020-10-07T04:23:38Z")

</div>

I want to change "ignore\_above" property of field in index pattern. I have success with post request like:

```auto
PUT myIndex-*/doc/_mapping
{
    "properties": {
        "message": {
            "type": "text",
            "norms": false,
            "fields": {
                "keyword": {
                    "type": "keyword",
                    "ignore_above": 2000
                }
            }
        }
    }
}

```

But it can not set to index which match to this pattern will be inserted in the future, just set to exist index in present. How to set for future index? Thanks

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [October 7, 2020, 6:32am UTC](https://discuss.elastic.co/t/how-to-change-ignore-above-property-of-field-in-index-pattern-even-index-match-pattern-will-be-insert-in-the-future/251208/2 "2020-10-07T06:32:15Z")

</div>

Hi,

This is where [Index Templates](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-templates.html) can be used.  
Basically, you define on which indexes the template should be applied and Elasticsearch will copy settings, mapping and so on to each new index which matches the index name pattern.

Best regards  
Wolfram

---

<div class="post-metadata">

**Author:** ![le\_ba\_nam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/le_ba_nam/32/75148_2.png) [@le\_ba\_nam](https://discuss.elastic.co/u/le_ba_nam)\
**Post date:** [October 7, 2020, 7:43am UTC](https://discuss.elastic.co/t/how-to-change-ignore-above-property-of-field-in-index-pattern-even-index-match-pattern-will-be-insert-in-the-future/251208/3 "2020-10-07T07:43:09Z")

</div>

Thanks for reply. Im search google for it but still confuse about how to view what template was applied on my index pattern and, if I can get it, is it have API to update that template?

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [October 7, 2020, 8:19am UTC](https://discuss.elastic.co/t/how-to-change-ignore-above-property-of-field-in-index-pattern-even-index-match-pattern-will-be-insert-in-the-future/251208/4 "2020-10-07T08:19:34Z")

</div>

Depending on the Stack version you can either use the ElasticSearch API (`GET _template`)  
or the Kibana menu entry(Stack Management -\> Data -\> Index Management -\> Index Templates) to list which templates exist and which indexes are affected.

The same is true for creating a template: either use the [API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-template.html) or [Kibana](https://www.elastic.co/guide/en/kibana/current/managing-indices.html#manage-index-templates)

---

<div class="post-metadata">

**Author:** ![le\_ba\_nam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/le_ba_nam/32/75148_2.png) [@le\_ba\_nam](https://discuss.elastic.co/u/le_ba_nam)\
**Post date:** [October 8, 2020, 4:02am UTC](https://discuss.elastic.co/t/how-to-change-ignore-above-property-of-field-in-index-pattern-even-index-match-pattern-will-be-insert-in-the-future/251208/5 "2020-10-08T04:02:59Z")

</div>

I wonder whether I can create new index template for index pattern just for one field I want to change its property and not affect on others? Just add, not replace.

Particularly, I want to change "ignore\_above" property of message field from 256 to 2000. Is 256 set by built-in template of Elasticsearch and have priority value equal 100. In such case, whether I have to create new template with higher priority?

Because Elasticsearch server used by my team, I want to sure about that. Thanks.

---

<div class="post-metadata">

**Author:** ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)\
**Post date:** [October 8, 2020, 4:53am UTC](https://discuss.elastic.co/t/how-to-change-ignore-above-property-of-field-in-index-pattern-even-index-match-pattern-will-be-insert-in-the-future/251208/6 "2020-10-08T04:53:30Z")

</div>

Currently, Index templates are additive - so creating an index template for this index pattern with a single field mapping will affect only this index while other index templates can still be applied.

---

<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:** [November 5, 2020, 4:53am UTC](https://discuss.elastic.co/t/how-to-change-ignore-above-property-of-field-in-index-pattern-even-index-match-pattern-will-be-insert-in-the-future/251208/7 "2020-11-05T04:53:32Z")

</div>

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