scan_scroll method.
properly detect the end-of-scroll condition.
add more elasticsearch versions to test.