[Elasticsearch 1.0.0.RC1] Recursive Parent/Child Aggs

Hello,

I am aware of a Parent/Child Relationship in ES by using the _parent field.
However, I would like to ask if there is some way to aggregate measures in
a recursive manner. For example, I would like to perform a query to ES and
have the children of children aggregation. Let me instantiate it:

Consider that I have the following docs inside an ordinary index:

id | idParent | Measure

1 | | 0
2 | 1 | 0
3 | 2 | 1
4 | 2 | 1
5 | 2 | 1

this docs tell me(in a recursive manner) that doc with id={2,3,4,5} are all
children of doc with id ={1}. So, if I aggregate the childrens, I would
have 3 as result instead of 0 (if I only consider doc with id=2 as the
single child of doc with id =1).

Does anyone knows how to perform such query to 1.0.0.RC1 ?

Regards from sunny Brazil.

--
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/b36089ff-58c0-4815-ac8d-ee2833a44ee0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.