Instant Aggregations: Rewriting Queries for fun and profit | Elastic Blog