How to Use pagination (size and from) in elastic search aggregation?
Aggregations don't offer pagination in most cases, due to how they work internally. Terms aggregation, starting in 5.2.0, offers a way to "partition" the terms into groups, which you can fetch independently: https://www.elastic.co/guide/en/elasticsearch/reference/5.x/search-aggregations-bucket-terms-aggregation.html#_filtering_values_with_partitions
For the rest of the aggregations (histograms, ranges, etc), you'll have to "partition" them yourself by selecting a smaller time range, etc.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.