Version: v6.2.27+incompatible Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2020 License: MIT Imports: 10 Imported by: 0



SlicedScroll illustrates scrolling through a set of documents in parallel. It uses the sliced scrolling feature introduced in Elasticsearch 5.0 to create a number of Goroutines, each scrolling through a slice of the total results. A second goroutine receives the hits from the set of goroutines scrolling through the slices and simply counts the total number and the number of documents received per slice.

The speedup of sliced scrolling can be significant but is very dependent on the specific use case.

See for details on sliced scrolling in Elasticsearch.


Scroll with 4 parallel slices through an index called "products". Use "_uid" as the default field:

sliced_scroll -index=products -n=4

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL