Articles
Aggregations API for Grouping Data
Publishers and eCommerce store owners often need to display the count of items (products, posts, etc.) within a category. Using WordPress core functionality, one would have to execute a number of slow MySQL queries to calculate those totals. Using Elasticsearch, we can find this information performantly using the Aggregations API.