Aggregation on parent/child documents


(Thomas) #1

Hi,

I wanted to ask whether is possible to perform aggregations combining
parent/child documents, something similar with the nested aggregation and
the reverse nested aggregation. It would be very helpful to have the
ability to create for instance buckets based on parent document fields and
get back aggregations that contain fields of both parent and children
documents combined.

Any thoughts, future features to be added in the near releases, related to
the above?

Thank you
Thomas

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/91d60d52-c538-45b5-8cf0-91cb1e9d9a9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Adrien Grand) #2

Hi Thomas,

None of the aggregations that we have today can leverage parent/child
relations. However, there is a children aggregation in the pipeline:

On Fri, Jul 25, 2014 at 1:54 PM, Thomas thomas.bolis@gmail.com wrote:

Hi,

I wanted to ask whether is possible to perform aggregations combining
parent/child documents, something similar with the nested aggregation and
the reverse nested aggregation. It would be very helpful to have the
ability to create for instance buckets based on parent document fields and
get back aggregations that contain fields of both parent and children
documents combined.

Any thoughts, future features to be added in the near releases, related to
the above?

Thank you
Thomas

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/91d60d52-c538-45b5-8cf0-91cb1e9d9a9a%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/91d60d52-c538-45b5-8cf0-91cb1e9d9a9a%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6s3BM-fS-LdZU0hfdBBwAYBaVGpi3j95xzhBGsckrpgg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(Thomas) #3

Hi Adrien and thank you for the reply,

This is exactly what i had in mind alongside with the reversed search
equivalent with the reverse_nested, this is planed for version 1.4.0
onwards as i see, will keep track of any updates on this, thanks

Thomas

On Friday, 25 July 2014 14:54:50 UTC+3, Thomas wrote:

Hi,

I wanted to ask whether is possible to perform aggregations combining
parent/child documents, something similar with the nested aggregation and
the reverse nested aggregation. It would be very helpful to have the
ability to create for instance buckets based on parent document fields and
get back aggregations that contain fields of both parent and children
documents combined.

Any thoughts, future features to be added in the near releases, related to
the above?

Thank you
Thomas

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a6c7dfa1-d8b1-4ce5-8046-73892f74b33e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #4