# Missing terms in rollup\_search terms aggregations

**URL:** https://discuss.elastic.co/t/missing-terms-in-rollup-search-terms-aggregations/318314
**Category:** Elasticsearch
**Tags:** rollups
**Created:** [November 7, 2022, 10:27am UTC](https://discuss.elastic.co/t/missing-terms-in-rollup-search-terms-aggregations/318314 "2022-11-07T10:27:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sam.hession](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sam.hession/32/112010_2.png) [@sam.hession](https://discuss.elastic.co/u/sam.hession)
#### Post date: [November 7, 2022, 10:27am UTC](https://discuss.elastic.co/t/missing-terms-in-rollup-search-terms-aggregations/318314/1 "2022-11-07T10:27:09Z")

</div>

Hello,

This is a request for a follow-up on a [previously posted topic](https://discuss.elastic.co/t/problem-in-terms-aggregation-result-buckets-in-rollup-search/191651), also documented and acknowledged in an [issue on the ElasticSearch repo](https://github.com/elastic/elasticsearch/issues/44998).

My team has encountered this known issue with rollup\_search terms aggregations which means that results can exclude top terms when sorting by document count. This can lead to confusing and inaccurate results. For example we have found when aggregating on a certain field the correct 2nd and 3rd terms are missing (verified by comparing this to our primary data store).

Increasing the size attribute helps increase the accuracy of the results, but knowing what value to set it to is difficult. For example in one case, we found to get an accurate 8th result for a top 10, we needed to increase the aggregation size from `10` to `400` terms.

We are currently using Elasticsearch 7.16.2 and based on the changelog this issue doesn't appear to have been fixed in 7. It would be useful to know if this issue has been fixed in ES 8 and if not is there a plan to address it?

Thanks!

---

<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: [December 5, 2022, 10:28am UTC](https://discuss.elastic.co/t/missing-terms-in-rollup-search-terms-aggregations/318314/2 "2022-12-05T10:28:02Z")

</div>

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