Filtering an aggregated result on child documents?

(Justin Zhu) #1

We have a parent->child mapping of users->purchases

The purchase has a 'total' field, that's a dollar amount.

How can we support a query like -- users who's spent over $1000 dollars in
the past 3 months?

If not currently supported, any suggestions on how it can be done
efficiently with the current APIs?

Thanks in advance.

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
To view this discussion on the web visit
For more options, visit

(system) #2