# Remove or increase ignore\_above on a text.keyword field

**URL:** <https://discuss.elastic.co/t/remove-or-increase-ignore-above-on-a-text-keyword-field/202879>\
**Category:** Elasticsearch\
**Created:** [October 9, 2019, 4:47pm UTC](https://discuss.elastic.co/t/remove-or-increase-ignore-above-on-a-text-keyword-field/202879 "2019-10-09T16:47:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![camay123](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@camay123](https://discuss.elastic.co/u/camay123)\
**Post date:** [October 9, 2019, 4:47pm UTC](https://discuss.elastic.co/t/remove-or-increase-ignore-above-on-a-text-keyword-field/202879/1 "2019-10-09T16:47:16Z")

</div>

I am trying to increase or remove the ignore\_above on a particular field on my index:

> ```
> "emlBody" : {
> "type" : "text",
> "fields" : {
> "keyword" : {
> "type" : "keyword",
> "ignore_above" : 256
> }
> },
> "fielddata" : true
> },
> 
> ```

I can find any solution for this after a round of Googling. I am trying have emails indexed so I can ran a scripted field on the text and extract a value with regex. From my understanding, I need to run my painless script on a var.keyword field. But, my current index is discarding email content above 256

thanks

---

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [October 9, 2019, 9:55pm UTC](https://discuss.elastic.co/t/remove-or-increase-ignore-above-on-a-text-keyword-field/202879/2 "2019-10-09T21:55:01Z")

</div>

I think this the "You can't change the mapping of an index". You would have to create a new index with the desired mapping change and reindex.

---

<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 6, 2019, 9:55pm UTC](https://discuss.elastic.co/t/remove-or-increase-ignore-above-on-a-text-keyword-field/202879/3 "2019-11-06T21:55:16Z")

</div>

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