# Is it possible to find largest document(s) in elasticsearch?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-find-largest-document-s-in-elasticsearch/29665>\
**Category:** Elasticsearch\
**Created:** [September 20, 2015, 5:13pm UTC](https://discuss.elastic.co/t/is-it-possible-to-find-largest-document-s-in-elasticsearch/29665 "2015-09-20T17:13:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![virtuman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/virtuman/32/49955_2.png) [@virtuman](https://discuss.elastic.co/u/virtuman)\
**Post date:** [September 20, 2015, 5:13pm UTC](https://discuss.elastic.co/t/is-it-possible-to-find-largest-document-s-in-elasticsearch/29665/1 "2015-09-20T17:13:20Z")

</div>

Our elasticsearch performance seems to be seriously degraded, and i'm trying to figure out if it is caused by some of the documents that we are not structuring properly before adding to the index, and i have a feeling that we have some documents in high megabytes.

Is there a way to find or sort documents by size?

thank you all.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 20, 2015, 5:44pm UTC](https://discuss.elastic.co/t/is-it-possible-to-find-largest-document-s-in-elasticsearch/29665/2 "2015-09-20T17:44:40Z")

</div>

I don't think you ca do this today. It will be available in 2.0 as a plugin.

See: [https://www.elastic.co/guide/en/elasticsearch/plugins/2.0/mapper-size.html](https://www.elastic.co/guide/en/elasticsearch/plugins/2.0/mapper-size.html)

---

<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:** [July 5, 2017, 11:49pm UTC](https://discuss.elastic.co/t/is-it-possible-to-find-largest-document-s-in-elasticsearch/29665/3 "2017-07-05T23:49:11Z")

</div>


