I am using elasticsearch-py to connect to my ES database which contains over 3 million documents. I want to return all the documents so I can abstract data and write it to a csv
Do you issue got resolved ?
I have got one simple solution, you must change the scroll_id every time after you call scroll method like below :
scroll_id
response_tmp = es.scroll(scroll_id=scrollId, scroll= "1m") scrollId = response_tmp['_scroll_id']