Filtering root documents based on the nested document aggregation


(sticky1-2) #1

Elasticsearch with nested structure is really cool in designing complex
data structures. There are ways I can sort the root document based on
max,sum,min,average of the values of the nested document using nested
sorting with different sort mode. However, I could not figure out if there
are ways to filter root document based on max,sum,min,average of the values
of nested document. My mapping and data is like this:
https://gist.github.com/7576821 https://gist.github.com/sticky1/7576821

I would like to filter members based on aggregated value of amounts someway
just like I can sort members based on aggregated value of amount. I also
need to have nested filter to filter some of the amount objects in the
aggregation.
It looks like Elasticsearch currently does not support this. Is there any
issues related to it or any proposed plan to have this in upcoming
releases?

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.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #2