Max size of scroll window?


I need to get all documents from index, so for that I using scroll to get all documents in bulks. Since my goal is to perform as less round-trips to elastic as possible, I want bulk size as big as possible.

What is the maximal size of scroll window? Sorry, can't find this number in documentation...

(andy_zhou) #2

set in elasticsearch.yml file , this about use elasticsearch-head tools need settings.
index.max_result_window: 10000


Thanks! And what is the default?

(andy_zhou) #4

it default about 10000 as i know

(David Pilato) #5

Sure you can modify the default maximum value but I hope you understand the consequence of it and the memory pressure this is going to add on your nodes as nodes will have to send more data to the coordinating node which will have to hold that in memory.

I'd recommend doing tests of this solution.

It's a tradeoff between round-trips and memory usage.

(system) #6

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