# Is there document count limitation for aggregations?

**URL:** <https://discuss.elastic.co/t/is-there-document-count-limitation-for-aggregations/325108>\
**Category:** Elasticsearch\
**Tags:** eql-elastic-query-language\
**Created:** [February 9, 2023, 7:48am UTC](https://discuss.elastic.co/t/is-there-document-count-limitation-for-aggregations/325108 "2023-02-09T07:48:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ysj6987](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ysj6987/32/117009_2.png) [@ysj6987](https://discuss.elastic.co/u/ysj6987)\
**Post date:** [February 9, 2023, 7:48am UTC](https://discuss.elastic.co/t/is-there-document-count-limitation-for-aggregations/325108/1 "2023-02-09T07:48:02Z")

</div>

Hello, I'm trying to get percentiles aggregation from rather big document size count ( over 400,000 )  
I know that query size limitation of documents is10000 as default.  
I wonder it applies to aggregation so that it results aggregation of only 10000 documents.  
I checked that it applies for all documents through stats aggregation, but i want to make sure that percentiles aggregation also works for over 10000 documents.

Thank you

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [February 9, 2023, 7:50am UTC](https://discuss.elastic.co/t/is-there-document-count-limitation-for-aggregations/325108/2 "2023-02-09T07:50:32Z")

</div>

Aggregations run across the full data set. It is only retrieval of actual matching documents that are size limited.

---

<div class="post-metadata">

**Author:** ![ysj6987](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ysj6987/32/117009_2.png) [@ysj6987](https://discuss.elastic.co/u/ysj6987)\
**Post date:** [February 9, 2023, 7:52am UTC](https://discuss.elastic.co/t/is-there-document-count-limitation-for-aggregations/325108/3 "2023-02-09T07:52:02Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> It is only ret

Thank you for reply!

---

<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:** [March 9, 2023, 7:52am UTC](https://discuss.elastic.co/t/is-there-document-count-limitation-for-aggregations/325108/4 "2023-03-09T07:52:55Z")

</div>

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