Hi,
You said you tried with python, so I'll just show you what worked for me :
es = Elasticsearch(['http://yourElasticIP:9200/'])
doc = {
'size' : 10000,
'query': {
'match_all' : {}
}
}
res = es.search(index='indexname', doc_type='typename', body=doc,scroll='1m')
Then you get a reponse with your matching documents and also an attribute named '_scroll_id'
So you can do
scrollId = res['_scroll_id']
es.scroll(scroll_id = scrollId, scroll = '1m')
Where res is the result of your previous es search.
You can do the es.scroll as many times as you need, just remember to update the scrollId value each time you do a new request
Sorry if I wasn't very clear