# Local query parameter for the GetFieldMapping API

**URL:** <https://discuss.elastic.co/t/local-query-parameter-for-the-getfieldmapping-api/227319>\
**Category:** Elasticsearch\
**Created:** [April 9, 2020, 12:37pm UTC](https://discuss.elastic.co/t/local-query-parameter-for-the-getfieldmapping-api/227319 "2020-04-09T12:37:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yfful](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yfful/32/88024_2.png) [@yfful](https://discuss.elastic.co/u/yfful)\
**Post date:** [April 9, 2020, 12:37pm UTC](https://discuss.elastic.co/t/local-query-parameter-for-the-getfieldmapping-api/227319/1 "2020-04-09T12:37:29Z")

</div>

Hi,

It is possible to pass a boolean query parameter `local` [1] that controls whether or not the master node should be accessed when resolving a field's mapping.  
Can you clarify how the information differs when that is retrieved locally versus on the master node ?

Thanks,

[1] [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html#get-field-mapping-api-query-params](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-field-mapping.html#get-field-mapping-api-query-params)

---

<div class="post-metadata">

**Author:** ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)\
**Post date:** [April 9, 2020, 1:34pm UTC](https://discuss.elastic.co/t/local-query-parameter-for-the-getfieldmapping-api/227319/2 "2020-04-09T13:34:25Z")

</div>

This parameter should be deprecated as it is not used anymore. Request is always executed locally. Thanks.

---

<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:** [May 7, 2020, 1:34pm UTC](https://discuss.elastic.co/t/local-query-parameter-for-the-getfieldmapping-api/227319/3 "2020-05-07T13:34:31Z")

</div>

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