Can Mvel access a set of documents from a query?


(george_monroe) #1

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?

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d210c953-e690-46c8-8a74-79decc3d2711%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #2