Changed Aggregations to have a “pruneFirst” execution mode that delays computation of child aggs until selection of top buckets has been computed in an effort to avoid combinatorial explosions.
cleanup & reformatting
Fixed issue causing LongTermsTests to fail where required sort order of final results not respected