How to use aggregations in scroll endpoint


#1

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.


(Val Crettaz) #2

As specified in the official documentation on scroll search:

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


#3

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


(Val Crettaz) #4

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


#5

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


(Val Crettaz) #6

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


(system) #7

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