Scroll in top hits aggregation

Hi everyone,
I have a question: it's possible to use the scroll feature in a top hits aggregation?
I have many documents and I would to load its with a pagination.

Thank's in advance for the replies

You may not be able to use scroll, but you can paginate the terms aggregations by using the num_partitions option. If you are using the top_hits aggregation along with the terms aggregation, you can benefit from this feature.

For other aggregations, I haven't found any way to paginate up till now. Hope this helps.

Perhaps Composite Aggregation is what you're looking for? It allows you to:

paginate all buckets from a multi-level aggregation efficiently. This aggregation provides a way to stream all buckets of a specific aggregation similarly to what scroll does for documents.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.