# Cause of use\_field\_mapping warning?

**URL:** <https://discuss.elastic.co/t/cause-of-use-field-mapping-warning/204828>\
**Category:** Elasticsearch\
**Created:** [October 23, 2019, 9:34am UTC](https://discuss.elastic.co/t/cause-of-use-field-mapping-warning/204828 "2019-10-23T09:34:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomhe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomhe/32/120065_2.png) [@tomhe](https://discuss.elastic.co/u/tomhe)\
**Post date:** [October 23, 2019, 9:34am UTC](https://discuss.elastic.co/t/cause-of-use-field-mapping-warning/204828/1 "2019-10-23T09:34:18Z")

</div>

> [@What is \[use\_field\_mapping\] format?](https://discuss.elastic.co/t/what-is-use-field-mapping-format/186416):
>
> Hi, I have a problem with my shards failing so I check es logs. I find this warning : [instance-0000000005] [use\_field\_mapping] is a special format that was only used to ease the transition to 7.x. It has become the default and shouldn't be set explicitly anymore. What is concerned by this format? Is it has a lynk with my shards problem? Thanks in advance

Regarding the question about use\_field\_mapping warnings in the linked post above:

"[use\_field\_mapping] is a special format that was only used to ease the transition to 7.x. It has become the default and shouldn't be set explicitly anymore."

I also get these warnings on the nodes in our cluster. I understand that use\_field\_mapping should no longer be used, but how can I find out where it is used? What should I look for? I have no recollection of ever using this in any scripts that index data to Elasticsearch.

---

<div class="post-metadata">

**Author:** ![Julie\_Tibshirani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julie_tibshirani/32/55628_2.png) [@Julie\_Tibshirani](https://discuss.elastic.co/u/Julie_Tibshirani)\
**Post date:** [October 25, 2019, 10:21pm UTC](https://discuss.elastic.co/t/cause-of-use-field-mapping-warning/204828/2 "2019-10-25T22:21:40Z")

</div>

Hello @tomhe,

The `use_field_mapping` parameter is set in the `doc_values` section of a search request: [https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-request-docvalue-fields.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.8/search-request-docvalue-fields.html). You would see this warning if you issued any searches that set this parameter. Unfortunately our logs don't yet give an easy way to track down the client that is causing the deprecation error.

If you are using Kibana, then it's possible that Kibana itself is causing the deprecation warning -- Kibana still includes `use_field_mapping` parameter in some visualizations ([https://github.com/elastic/kibana/issues/47727](https://github.com/elastic/kibana/issues/47727)). It looks like the team is aware of the issue and is working on a fix.

---

<div class="post-metadata">

**Author:** ![tomhe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tomhe/32/120065_2.png) [@tomhe](https://discuss.elastic.co/u/tomhe)\
**Post date:** [October 28, 2019, 11:49am UTC](https://discuss.elastic.co/t/cause-of-use-field-mapping-warning/204828/3 "2019-10-28T11:49:19Z")

</div>

Thanks, might very well be Kibana.

---

<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 25, 2019, 11:49am UTC](https://discuss.elastic.co/t/cause-of-use-field-mapping-warning/204828/4 "2019-11-25T11:49:26Z")

</div>

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