Paginating term aggregation https://spoon-elastic.com/all-elastic-search-post/pagination-aggregation-elasticsearch/