# Unwind aggregation

**URL:** https://discuss.elastic.co/t/unwind-aggregation/21300
**Category:** Elasticsearch
**Created:** [December 17, 2014, 7:58pm UTC](https://discuss.elastic.co/t/unwind-aggregation/21300 "2014-12-17T19:58:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Facundo\_Viale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/facundo_viale/32/1033_2.png) [@Facundo\_Viale](https://discuss.elastic.co/u/Facundo_Viale)
#### Post date: [December 17, 2014, 7:58pm UTC](https://discuss.elastic.co/t/unwind-aggregation/21300/1 "2014-12-17T19:58:27Z")

</div>

Hi,

I'm working on an application that use the aggregation API for making  
reports. It would be great if there were something like mongo's unwind  
operator  
[http://docs.mongodb.org/manual/reference/operator/aggregation/unwind/](http://docs.mongodb.org/manual/reference/operator/aggregation/unwind/),  
but I found nothing about this. Are there any plans to support this  
operation? It is possible to implement?

Thanks!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b68ff5b1-e045-421a-83cf-d1efa77c72c3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b68ff5b1-e045-421a-83cf-d1efa77c72c3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)
#### Post date: [December 18, 2014, 2:39pm UTC](https://discuss.elastic.co/t/unwind-aggregation/21300/2 "2014-12-18T14:39:39Z")

</div>

I don't believe we could have such an aggregation. However I think similar  
results can be achieved by modeling the data differently, typically by  
having nested documents for each size (to take the same example as the  
mongo documentation) and then using the nested aggregation in order to  
collect independently each size.

On Wed, Dec 17, 2014 at 8:58 PM, Facundo Viale [facundo.m.viale@gmail.com](mailto:facundo.m.viale@gmail.com)  
wrote:

> Hi,
> 
> I'm working on an application that use the aggregation API for making  
> reports. It would be great if there were something like mongo's unwind  
> operator  
> [http://docs.mongodb.org/manual/reference/operator/aggregation/unwind/](http://docs.mongodb.org/manual/reference/operator/aggregation/unwind/),  
> but I found nothing about this. Are there any plans to support this  
> operation? It is possible to implement?
> 
> Thanks!
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/b68ff5b1-e045-421a-83cf-d1efa77c72c3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b68ff5b1-e045-421a-83cf-d1efa77c72c3%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/b68ff5b1-e045-421a-83cf-d1efa77c72c3%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b68ff5b1-e045-421a-83cf-d1efa77c72c3%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j5aNyHDYcDM-EhghzaJ2%2BVL43L%3DvQLn3jzbmgnvTG-epQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j5aNyHDYcDM-EhghzaJ2%2BVL43L%3DvQLn3jzbmgnvTG-epQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:42am UTC](https://discuss.elastic.co/t/unwind-aggregation/21300/3 "2017-07-06T00:42:52Z")

</div>


