# Disabling the \_size mapping?

**URL:** <https://discuss.elastic.co/t/disabling-the-size-mapping/332831>\
**Category:** Elasticsearch\
**Created:** [May 8, 2023, 3:37pm UTC](https://discuss.elastic.co/t/disabling-the-size-mapping/332831 "2023-05-08T15:37:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shani\_angarkadu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shani_angarkadu/32/50638_2.png) [@shani\_angarkadu](https://discuss.elastic.co/u/shani_angarkadu)\
**Post date:** [May 8, 2023, 3:37pm UTC](https://discuss.elastic.co/t/disabling-the-size-mapping/332831/1 "2023-05-08T15:37:36Z")

</div>

I want to enable and disable the size mapping.  
Enable worked fine after the index refreshed and I disable the \_size set to false but I still able to query the \_size. How can I disable so no one can query?

> **[Using the \_size field | Elasticsearch Plugins and Integrations \[8.7\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/plugins/current/mapper-size-usage.html)**

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 10, 2023, 11:57pm UTC](https://discuss.elastic.co/t/disabling-the-size-mapping/332831/2 "2023-05-10T23:57:28Z")

</div>

It'd be useful if you could show your mappings and the queries you are running and their output.

---

<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:** [June 7, 2023, 11:58pm UTC](https://discuss.elastic.co/t/disabling-the-size-mapping/332831/3 "2023-06-07T23:58:20Z")

</div>

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