Trying to understand your question, when you say max(A) or max(B), do you mean you have multiple values in A or B per document?
Also, it "sounds" to me like you want a script_filter instead of an aggregation: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-script-filter.html -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0b002205-304c-460f-b8f1-808e45658283%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
