Can Mvel access a set of documents from a query?

Guys, I'm trying to aggregate on multiple transaction child records to see if their sum meets a threshold. I want to do this without using the aggs module in 1.0.0 because while it does give me a way to sum, it doesn't really seem to give a way to compare to a threshold after the sum is computed. Can Mvel give me access to a collection of records which are scooped up by some piece of a query higher up on the filtering chain? In other words, if I have a has_child query and run a range query within that and then try to use Mvel to sum and compare. Is this possible? Or is the only available ctx context per document?


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