Scroll API size parameter

Hi all

According to the documentation, when I set size of N for a scroll, I will get a number of results per page which is equal to N x numberOfShards.

The problem is I can not reproduce this behaviour. In my tests I get the wanted size N and also the order works. Which is fine by me, it's just confusing that the documentation states the opposite.

Did this behaviour changed in version 2.0 (or other version)?

Can I rely on the fact that when using scroll, the size I request is the size I get and also ordered? The Elasticsearch version I'm using is 2.4.

Thank you,

#elasticsearch #scroll #paging

Hi, I'm agree with you, the size N seems not be "per shard". Results are well ordered and scrolled. Strange...

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