# Composite Aggregation with Nested Field in Terms

**URL:** https://discuss.elastic.co/t/composite-aggregation-with-nested-field-in-terms/208220
**Category:** Elasticsearch
**Created:** [November 17, 2019, 1:45pm UTC](https://discuss.elastic.co/t/composite-aggregation-with-nested-field-in-terms/208220 "2019-11-17T13:45:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nili1](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@nili1](https://discuss.elastic.co/u/nili1)
#### Post date: [November 17, 2019, 1:45pm UTC](https://discuss.elastic.co/t/composite-aggregation-with-nested-field-in-terms/208220/1 "2019-11-17T13:45:25Z")

</div>

Hi,  
Is there a way to use nested fields in the sources of a composite aggregation in version 6.8?  
If so, is it possible to combine both nested and not-nested fields as sources?  
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 15, 2019, 1:45pm UTC](https://discuss.elastic.co/t/composite-aggregation-with-nested-field-in-terms/208220/2 "2019-12-15T13:45:37Z")

</div>

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