# Remove ignore\_above default mapping

**URL:** <https://discuss.elastic.co/t/remove-ignore-above-default-mapping/85024>\
**Category:** Elasticsearch\
**Created:** [May 9, 2017, 7:24am UTC](https://discuss.elastic.co/t/remove-ignore-above-default-mapping/85024 "2017-05-09T07:24:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elk\_user1](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@elk\_user1](https://discuss.elastic.co/u/elk_user1)\
**Post date:** [May 9, 2017, 7:24am UTC](https://discuss.elastic.co/t/remove-ignore-above-default-mapping/85024/1 "2017-05-09T07:24:43Z")

</div>

Hello,

So I have defined a mapping for an index before loading the data. So based on that (I guess), any new text fields coming are considered as text/keyword fields but with additional property of ignore\_above:256. How to disable the dynamic assignment of ignore\_above:256?

Any help is appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [May 9, 2017, 8:26am UTC](https://discuss.elastic.co/t/remove-ignore-above-default-mapping/85024/2 "2017-05-09T08:26:27Z")

</div>

You'd need to do something like this at index creation time:

```auto
PUT my_index
{
  "mappings": {
    "my_type": {
      "dynamic_templates": [
        {
          "strings": {
            "match_mapping_type": "string",
            "mapping": {
              "type": "text",
              "fields": {
                "keyword": {
                  "type": "keyword"
                }
              }
            }
          }
        }
      ]
    }
  }
}

```

This will give Elasticsearch a new dynamic template for strings which will override the default one.

---

<div class="post-metadata">

**Author:** ![elk\_user1](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@elk\_user1](https://discuss.elastic.co/u/elk_user1)\
**Post date:** [May 9, 2017, 10:40am UTC](https://discuss.elastic.co/t/remove-ignore-above-default-mapping/85024/3 "2017-05-09T10:40:40Z")

</div>

That seems to work. Thank you so much 😄

---

<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:** [June 6, 2017, 10:46am UTC](https://discuss.elastic.co/t/remove-ignore-above-default-mapping/85024/4 "2017-06-06T10:46:07Z")

</div>

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