# Nested aggregation unexpected behavior

**URL:** <https://discuss.elastic.co/t/nested-aggregation-unexpected-behavior/119003>\
**Category:** Elasticsearch\
**Created:** [February 8, 2018, 9:19am UTC](https://discuss.elastic.co/t/nested-aggregation-unexpected-behavior/119003 "2018-02-08T09:19:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kocour](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@kocour](https://discuss.elastic.co/u/kocour)\
**Post date:** [February 8, 2018, 9:19am UTC](https://discuss.elastic.co/t/nested-aggregation-unexpected-behavior/119003/1 "2018-02-08T09:19:26Z")

</div>

Hi,  
I have problem with query described here (the question is too long for this forum) [https://stackoverflow.com/questions/48458930/nested-aggregation-unexpected-behavior](https://stackoverflow.com/questions/48458930/nested-aggregation-unexpected-behavior)  
Do you have any idea where is the problem?

Thank you for any advice

---

<div class="post-metadata">

**Author:** ![kocour](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@kocour](https://discuss.elastic.co/u/kocour)\
**Post date:** [February 8, 2018, 11:03am UTC](https://discuss.elastic.co/t/nested-aggregation-unexpected-behavior/119003/2 "2018-02-08T11:03:54Z")

</div>

Problem solved on version 6.2 (previous version was 6.1)

---

<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 8, 2018, 11:04am UTC](https://discuss.elastic.co/t/nested-aggregation-unexpected-behavior/119003/3 "2018-03-08T11:04:10Z")

</div>

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