# Not all data return in aggs

**URL:** <https://discuss.elastic.co/t/not-all-data-return-in-aggs/25430>\
**Category:** Elasticsearch\
**Created:** [July 13, 2015, 10:02am UTC](https://discuss.elastic.co/t/not-all-data-return-in-aggs/25430 "2015-07-13T10:02:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_Just](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@Max\_Just](https://discuss.elastic.co/u/Max_Just)\
**Post date:** [July 13, 2015, 10:02am UTC](https://discuss.elastic.co/t/not-all-data-return-in-aggs/25430/1 "2015-07-13T10:02:36Z")

</div>

Hi, I have a query with aggs by name. In the index I have about a 26800 unique names, but in aggs I have returned less then 20 000 of items. Why other items are missed?

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [July 13, 2015, 10:11am UTC](https://discuss.elastic.co/t/not-all-data-return-in-aggs/25430/2 "2015-07-13T10:11:03Z")

</div>

Can you give some more information about what you are doing? And also, show the query that you are running on Elasticsearch to get these aggregations?

---

<div class="post-metadata">

**Author:** ![Max\_Just](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@Max\_Just](https://discuss.elastic.co/u/Max_Just)\
**Post date:** [July 13, 2015, 12:12pm UTC](https://discuss.elastic.co/t/not-all-data-return-in-aggs/25430/3 "2015-07-13T12:12:09Z")

</div>

Yes, here the query:  
curl-XPOST '127.0.0.1:9200/index1/\_search?search\_type=count&pretty=true' -d  
{  
"from": 0,  
"size": 0,  
"aggs": {  
"top-tags": {  
"terms": {  
"field": "sld",  
"size": 0  
},  
"aggs": {  
"top\_tag\_hits": {  
"top\_hits": {  
"size": 1  
}  
}  
}  
}  
}  
}

sld it is the name for aggs. query return about 17K of buckets. But in the index must be 25K unique names. Maybe Elastic have some aggs limitation in core level? or limit size for response message?

---

<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 6, 2017, 12:01am UTC](https://discuss.elastic.co/t/not-all-data-return-in-aggs/25430/4 "2017-07-06T00:01:51Z")

</div>


