# Child Aggregation with Parent Bucket Requires Execution Hint for Global Ordinals

**URL:** <https://discuss.elastic.co/t/child-aggregation-with-parent-bucket-requires-execution-hint-for-global-ordinals/24073>\
**Category:** Elasticsearch\
**Created:** [June 22, 2015, 10:50am UTC](https://discuss.elastic.co/t/child-aggregation-with-parent-bucket-requires-execution-hint-for-global-ordinals/24073 "2015-06-22T10:50:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![srkhanzode](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@srkhanzode](https://discuss.elastic.co/u/srkhanzode)\
**Post date:** [June 22, 2015, 10:50am UTC](https://discuss.elastic.co/t/child-aggregation-with-parent-bucket-requires-execution-hint-for-global-ordinals/24073/1 "2015-06-22T10:50:22Z")

</div>

Hi,

I have created a Parent Child relationship and I am executing aggregation queries.

My aggregation does not have a parent bucket, in which case, my counts do not match with the actual numbers ONLY for the children-level aggregations. Any other parent aggregations or children-within-parent-buckets work good. If I enable the execution hint of global ordinals on this aggregation, then my counts match. Is this documented behavior? I am using 1.4.2. I saw something relevant @ [https://github.com/elastic/elasticsearch/issues/9271](https://github.com/elastic/elasticsearch/issues/9271)

---

<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:06am UTC](https://discuss.elastic.co/t/child-aggregation-with-parent-bucket-requires-execution-hint-for-global-ordinals/24073/2 "2017-07-06T00:06:12Z")

</div>


