Skip to content

Instantly share code, notes, and snippets.

View muhammadddev's full-sized avatar
🎯
Focusing

Muhammad muhammadddev

🎯
Focusing
View GitHub Profile
@muhammadddev
muhammadddev / export_elasticsearch_data.py
Created August 18, 2021 16:48
Retrieve all the documents from an Elasticsearch index
import json
import time
import pandas as pd
from elasticsearch import Elasticsearch
from elasticsearch.helpers import scan
start_time = time.time()
ELS_CONNECTION_STR = "http://elastic:changeme@localhost:9200/" # YOUR CONNECTION STRING