How to do scan and scroll using Elastic4s


I am using Elastic4s (SCALA client for elastic search). I need to retrieve all 10 millions documents in an index. I think the right way to do is using scan and scroll.

Is there any code snippet or examples showing how to do scan and scroll using Elastic4s?

(Stephen Samuel) #2
client.execute {
   search in "index" / "type" query <yourquery> scroll "1m"


client.execute {
   search scroll <id>

This example should help:

(Daniel Pinyol Laserna) #3

I guess the updated link is or

(system) #4