Skip to content

Instantly share code, notes, and snippets.

Avatar

Vyacheslav Tykhonov 4tikhonov

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