# Field \_source added to mapping automatically is shown in Discovery as empty

**URL:** <https://discuss.elastic.co/t/field-source-added-to-mapping-automatically-is-shown-in-discovery-as-empty/252324>\
**Category:** Kibana\
**Created:** [October 16, 2020, 9:24am UTC](https://discuss.elastic.co/t/field-source-added-to-mapping-automatically-is-shown-in-discovery-as-empty/252324 "2020-10-16T09:24:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rudolf\_Reddy\_Macejka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rudolf_reddy_macejka/32/12875_2.png) [@Rudolf\_Reddy\_Macejka](https://discuss.elastic.co/u/Rudolf_Reddy_Macejka)\
**Post date:** [October 16, 2020, 9:24am UTC](https://discuss.elastic.co/t/field-source-added-to-mapping-automatically-is-shown-in-discovery-as-empty/252324/1 "2020-10-16T09:24:49Z")

</div>

Hello,

I have a mapping which is "dynamic": false.

By POST first message, there was automatically added few fields which i didn't defined.  
I understood that it is mandatory to have there:

- \_id | string
- \_index | string
- \_score | number
- \_type | string

But why it is adding also

- \_source | \_source

and then complain in Discovery that

> **?** \_source  
> This field is present in your Elasticsearch mapping but not in the 0 documents shown in the doc table. You may still be able to visualize or search on it.

?

How can I remove the \_source from Available fields list?

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [October 20, 2020, 10:41am UTC](https://discuss.elastic.co/t/field-source-added-to-mapping-automatically-is-shown-in-discovery-as-empty/252324/2 "2020-10-20T10:41:45Z")

</div>

Hi

You could remove \_source in our Stack Management / Advanced Settings Page , by editing metaFields.

 ![Bildschirmfoto 2020-10-20 um 12.38.29](https://us1.discourse-cdn.com/elastic/original/3X/3/5/3541b1ef3a3126480f4bdc153702cdcde9423bc6.png)

Best,  
Matthias

---

<div class="post-metadata">

**Author:** ![Rudolf\_Reddy\_Macejka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rudolf_reddy_macejka/32/12875_2.png) [@Rudolf\_Reddy\_Macejka](https://discuss.elastic.co/u/Rudolf_Reddy_Macejka)\
**Post date:** [October 20, 2020, 11:44am UTC](https://discuss.elastic.co/t/field-source-added-to-mapping-automatically-is-shown-in-discovery-as-empty/252324/4 "2020-10-20T11:44:21Z")

</div>

Thank you. I have found it. But is it save to remove the \_source from the advance settings?  
Wouldn't that impact existing data?

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [October 20, 2020, 11:56am UTC](https://discuss.elastic.co/t/field-source-added-to-mapping-automatically-is-shown-in-discovery-as-empty/252324/5 "2020-10-20T11:56:06Z")

</div>

There is no data modified, it just determines what is being displayed, so yes, it's safe!  
Best,  
Matthias

---

<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 17, 2020, 11:56am UTC](https://discuss.elastic.co/t/field-source-added-to-mapping-automatically-is-shown-in-discovery-as-empty/252324/6 "2020-11-17T11:56:10Z")

</div>

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