# No cached mapping for this field!

**URL:** <https://discuss.elastic.co/t/no-cached-mapping-for-this-field/286684>\
**Category:** Kibana\
**Created:** [October 14, 2021, 7:47am UTC](https://discuss.elastic.co/t/no-cached-mapping-for-this-field/286684 "2021-10-14T07:47:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![padamrai](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@padamrai](https://discuss.elastic.co/u/padamrai)\
**Post date:** [October 14, 2021, 7:47am UTC](https://discuss.elastic.co/t/no-cached-mapping-for-this-field/286684/1 "2021-10-14T07:47:30Z")

</div>

I tried the management -\> index pattern and hit refreshed button still I am not getting these fields. In the discover window,  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/6/b674d9b8cbe9925566f82fee7556aa335463f54e.png)  
I am seeing these fields with warning tags but I am not getting these fields while using **index\_name/\_mapping**.

Also, these fields are not searchable in the discover panel.

Please help me how to resolve this issue.

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [October 14, 2021, 1:24pm UTC](https://discuss.elastic.co/t/no-cached-mapping-for-this-field/286684/2 "2021-10-14T13:24:51Z")

</div>

Which version of the stack are you using? 7.10 was the last version that cached the fields definitions ([PR](https://github.com/elastic/kibana/pull/82223))

I've tested the following with 7.15:

```auto
# Create an index with some docs
DELETE test_warning_fields

PUT test_warning_fields
{
  "mappings": {
    "properties": {
      "field1": { "type": "text"},
      "field2": { "type": "text"},
      "field3": { "type": "text"},
      "field4": { "type": "text"}
    }
  }
}

POST test_warning_fields/_bulk
{ "index" : { "_id" : "1" } }
{ "field1" : "value1", "field2" : "value1","field3" : "value1","field4" : "value1"}
{ "index" : { "_id" : "2" } }
{ "field1" : "value1", "field2" : "value1","field3" : "value1","field4" : "value1"}
{ "index" : { "_id" : "3" } }
{ "field1" : "value1", "field2" : "value1","field3" : "value1","field4" : "value1"}
{ "index" : { "_id" : "4" } }
{ "field1" : "value1", "field2" : "value1","field3" : "value1","field4" : "value1"}
{ "index" : { "_id" : "5" } }
{ "field1" : "value1", "field2" : "value1","field3" : "value1","field4" : "value1"}
{ "index" : { "_id" : "6" } }
{ "field1" : "value1", "field2" : "value1","field3" : "value1","field4" : "value1"}

# Create the index pattern
# Check in Discover, all OK

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/6/c6aee028064db5d84da93be7cd33a3a1509e50a4.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/6/3634df85006874415ee55022083ca42eba1a7204.png)

Then I regenerated the index with different fields to try to break Kibana:

```auto
# Regenerate the index with other fields
DELETE test_warning_fields

PUT test_warning_fields
{
  "mappings": {
    "properties": {
      "field5": { "type": "text"},
      "field6": { "type": "text"},
      "field7": { "type": "text"},
      "field8": { "type": "text"}
    }
  }
}

POST test_warning_fields/_bulk
{ "index" : { "_id" : "1" } }
{ "field5" : "value5", "field6" : "value1","field7" : "value1","field8" : "value1"}
{ "index" : { "_id" : "2" } }
{ "field5" : "value5", "field6" : "value1","field7" : "value1","field8" : "value1"}
{ "index" : { "_id" : "3" } }
{ "field5" : "value5", "field6" : "value1","field7" : "value1","field8" : "value1"}
{ "index" : { "_id" : "4" } }
{ "field5" : "value5", "field6" : "value1","field7" : "value1","field8" : "value1"}
{ "index" : { "_id" : "5" } }
{ "field5" : "value5", "field6" : "value1","field7" : "value1","field8" : "value1"}
{ "index" : { "_id" : "6" } }
{ "field5" : "value5", "field6" : "value1","field7" : "value1","field8" : "value1"}

```

But the index pattern and discover reflected the new schema

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/f/4f5eb60e2d2839abf7a225caff95d1c5aee763f1.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/5/156f0124548d3f9740aca34b6fdc1dbc07532a1e.png)

Hope it helps!

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 14, 2021, 3:18pm UTC](https://discuss.elastic.co/t/no-cached-mapping-for-this-field/286684/3 "2021-10-14T15:18:41Z")

</div>

What version are you on

If you're on an older version a simple refresh in the browser won't pull the new index pattern definitions into discover You will need to do a shift refresh or full hard refresh / reload of the page.

This behavior has changed in recent releases but highly recommend upgrading if you're on an older version.

---

<div class="post-metadata">

**Author:** ![padamrai](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@padamrai](https://discuss.elastic.co/u/padamrai)\
**Post date:** [October 14, 2021, 3:45pm UTC](https://discuss.elastic.co/t/no-cached-mapping-for-this-field/286684/4 "2021-10-14T15:45:15Z")

</div>

I have 7.11.0 elk stack version.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [October 14, 2021, 3:47pm UTC](https://discuss.elastic.co/t/no-cached-mapping-for-this-field/286684/5 "2021-10-14T15:47:53Z")

</div>

Assuming as you said you wen to the Index Pattern Refreshed it, saw that those fields now exist in the index pattern.

Then test by opening Discover in a new incognito window, or make sure you do a full hard refresh of the Discover page, this is a know issue on older versions

---

<div class="post-metadata">

**Author:** ![padamrai](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@padamrai](https://discuss.elastic.co/u/padamrai)\
**Post date:** [October 15, 2021, 5:39am UTC](https://discuss.elastic.co/t/no-cached-mapping-for-this-field/286684/6 "2021-10-15T05:39:44Z")

</div>

It is because of null data fields when I send data with these fields and again refreshed it, it works perfectly fine.

---

<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 12, 2021, 5:40am UTC](https://discuss.elastic.co/t/no-cached-mapping-for-this-field/286684/7 "2021-11-12T05:40:07Z")

</div>

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