# Few buckets are missing in terms aggregation result

**URL:** https://discuss.elastic.co/t/few-buckets-are-missing-in-terms-aggregation-result/216706
**Category:** Elasticsearch
**Created:** [January 27, 2020, 5:09pm UTC](https://discuss.elastic.co/t/few-buckets-are-missing-in-terms-aggregation-result/216706 "2020-01-27T17:09:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![darkwarrior](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@darkwarrior](https://discuss.elastic.co/u/darkwarrior)
#### Post date: [January 27, 2020, 5:09pm UTC](https://discuss.elastic.co/t/few-buckets-are-missing-in-terms-aggregation-result/216706/1 "2020-01-27T17:09:10Z")

</div>

we have day wise elasticsearch indices they do contain millions of documents and we are maintaining one rollup index of them as well, so the problem is

1. when I used aggregation on one field on rollup index, I got some buckets in response but the problem is some intermediate buckets were missing.
2. as soon as I increased the size of the aggregation I got those missing buckets as well in the right order.
3. I tried both the solutions given in [this link](https://discuss.elastic.co/t/accuracy-issue-of-aggregation-results/19823), but not a single one worked for me.
4. any help would be appreciated. Thanks in advance!

- Is **shard\_size** parameter supported in **\_rollup\_search**? coz I tried some large values with it(eg. "shard\_size":50000) but didn't see any change in the result, only got missing buckets when increased the value of "size" parameter in aggs (eg. from "size":10 to "size":11)

---

<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: [February 24, 2020, 5:12pm UTC](https://discuss.elastic.co/t/few-buckets-are-missing-in-terms-aggregation-result/216706/2 "2020-02-24T17:12:22Z")

</div>

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