# Confused about ignore\_above and how to update

**URL:** <https://discuss.elastic.co/t/confused-about-ignore-above-and-how-to-update/245962>\
**Category:** Kibana\
**Created:** [August 21, 2020, 8:49pm UTC](https://discuss.elastic.co/t/confused-about-ignore-above-and-how-to-update/245962 "2020-08-21T20:49:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cheiligers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheiligers/32/73114_2.png) [@cheiligers](https://discuss.elastic.co/u/cheiligers)\
**Post date:** [August 21, 2020, 11:06pm UTC](https://discuss.elastic.co/t/confused-about-ignore-above-and-how-to-update/245962/2 "2020-08-21T23:06:33Z")

</div>

@gswartz, welcome to the community!  
`ignore_above` is only applicable to `keyword` fields.  
Elasticsearch tries to help one out by creating a mapping if one isn't defined but it doesn't always get it _just the way you want it_ 🙂  
If you want _both_ text and keyword, you can use a [multi-field](https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html) mapping as follows:

```auto
PUT /notes-index/_mapping
	{
	  "properties": {
	    "notes": {
	      "type": "text",
              "fields": {
                  "text.keyword": {
                       "type": "keyword"
                       "ignore_above": 5000
                  }
             }
	    }
	}

```

I wouldn't go as far as 5000 though, because the keyword type treats each entry as an individual, unique term. The default is 256.  
There is an important note at the bottom of the docs that I'l reiterate here:  
" The value for `ignore_above` is the _character count_ , but Lucene counts bytes. If you use UTF-8 text with many non-ASCII characters, you may want to set the limit to `32766 / 4 = 8191` since UTF-8 characters may occupy at most 4 bytes."

If you want to do a full text search and plan to use an analyzer, I suggest you remap the field as text only. There's a great explanation and how to use the analyzers [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html).  
I hope that helps.

---

_[View the full topic](https://discuss.elastic.co/t/confused-about-ignore-above-and-how-to-update/245962)._
