I have a directory full of JSON files that I want to index within elastic search. I've looked into pyelastic, yet I'm quite new to both python and elastic search. I've pasted some code below.
from pyelasticsearch import ElasticSearch
# ElasticSearch settings
ES_CLUSTER = 'http://localhost:9200/'
ES_INDEX = 'test'
ES_TYPE = 'doc'
es = ElasticSearch(ES_CLUSTER)
es.bulk_index(ES_INDEX, ES_TYPE, ???)