Skip to content

Instantly share code, notes, and snippets.

View 4tikhonov's full-sized avatar

Vyacheslav Tykhonov 4tikhonov

View GitHub Profile
@4tikhonov
4tikhonov / gist:4048bbeb0ff1c397226b5a0d59f8e60c
Created April 14, 2017 23:09 — forked from drorata/gist:146ce50807d16fd4a6aa
Minimal Working example of Elasticsearch scrolling using Python client
# Initialize the scroll
page = es.search(
index = 'yourIndex',
doc_type = 'yourType',
scroll = '2m',
search_type = 'scan',
size = 1000,
body = {
# Your query's body
})