How does size in a scan and scroll work?

(Prabhath Kiran) #1

I was wondering how size in a scan and scroll request works? In the latest documentation, it specifies

The size parameter allows you to configure the maximum number of hits to be returned with each batch of results.

Looking at some older documentation I found the below

Although we specified a size of 1,000, we get back many more documents. When scanning, the size is applied to each shard, so you will get back a maximum of size * number_of_primary_shards documents in each batch.

Is the above statement still true?

If true, does it aggregate all the results from each shard and return the results in batches of 1,000 on every scroll?

(system) #2

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