How to scroll aggregation results using Java API

Could you please suggest me, Is there any way I can scroll aggregation results from JAVA APIs?

There is a concept of scroll for search results, but there is no scrolling for aggregation results.

If you're exposing say top 10 terms on a website, you can run aggregation for top 50 terms, and then if user wishes to load more, either run the same query and render next 20 or implement some application specific cache.

Could you elaborate a little more on what you're trying to do?

1 Like

As mentioned, you cannot scroll aggs. There is a feature request for it on GH though.