# Size limit for items within a document

**URL:** <https://discuss.elastic.co/t/size-limit-for-items-within-a-document/150825>\
**Category:** Elasticsearch\
**Created:** [October 3, 2018, 6:26am UTC](https://discuss.elastic.co/t/size-limit-for-items-within-a-document/150825 "2018-10-03T06:26:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Waleed\_Malik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/waleed_malik/32/33832_2.png) [@Waleed\_Malik](https://discuss.elastic.co/u/Waleed_Malik)\
**Post date:** [October 3, 2018, 6:26am UTC](https://discuss.elastic.co/t/size-limit-for-items-within-a-document/150825/1 "2018-10-03T06:26:36Z")

</div>

I am trying to retrieve a document from elastic-search that comprises of an entity that has a data-set of more than 10k items. I have already gone through scrolling, paging and other options but that only helps in retrieving the JSON documents as a whole from the elastic-search database and won't apply on the items within any particular document.

P.s. what i want is to scroll through nested documents(child elements) that exceed elastic-search size limit

Is there any workaround for this ?

---

<div class="post-metadata">

**Author:** ![LGans316](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@LGans316](https://discuss.elastic.co/u/LGans316)\
**Post date:** [October 3, 2018, 8:01am UTC](https://discuss.elastic.co/t/size-limit-for-items-within-a-document/150825/2 "2018-10-03T08:01:02Z")

</div>

Is this what you are after?

index.max\_result\_window - Default size is 10000, so scrolling is the recommended way to fetch larger results.

Did you try _filter\_path_ or \__source\_include_ on your request?

[https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html)  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-source-filtering.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-source-filtering.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:** [October 31, 2018, 8:01am UTC](https://discuss.elastic.co/t/size-limit-for-items-within-a-document/150825/3 "2018-10-31T08:01:03Z")

</div>

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