How to use aggregations in scroll endpoint

I can not use aggregation in scroll endpoint;
The operation displays the following images:

As shown in image 1, I can only modify "max_size" at last.
But this should not be the ultimate solution, helping.

As specified in the official documentation on scroll search:

If the request specifies aggregations, only the initial search response will contain the aggregations results.

Oh, thank you, I seem to have ignored this line. I also want to ask you for a more than 10,000 data how to do aggregate.I'm confused

The 10000 limit is only for retrieving document results (i.e. what you get in hits), aggregations will work on any number of documents.

Oh, that's embarrassing. Thank you for correcting me!!

No worries, we're all here to learn :wink:

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