How to stream results from a composite aggregation

Hi Team,

I am doing a composite aggregation and from the docs:

This aggregation provides a way to stream all buckets of a specific aggregation similarly to what scroll does for documents.

But I am unsure how I can do the streaming as there are no examples in the docs although the docs state the above.

Should I use the scroll API or should I loop and use the after parameter and build a new search multiple times?


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