In Elasticsearch, paginating aggregations results is a recurring need.By default, Elastic will send all results in your aggregation. If a query filter is often enough, it’s not always the wanted behavior.  First possibility, increase a lot the size parameter and do the pagination on front side.It can be a good solution… for few hundred results, and a low cardinality.  But if we don’t want to crash our app, we probably can do better.  Depending on your specific use case you will…