Service to Load JSON File / All JSON Files in Directory to Elasticsearch Host
host
- ElasticSearch Host with Port, default is http://localhost:9200
index
- ElasticSearch Index Name, default is base_index
json_file
- JSON Filename to load into ES, default is ``
json_directory
- Directory path for parsing all JSON Files, default is ``
- Install Requirements:
pip install -r requirements.txt
- Run the command to load into ElasticSearch
python load_json_to_elasticsearch.py --host https://abcd:9200 --index test_index_name --json_file abcd.json
Files for specifying index configuration are:
- index_settings.json - Used to specify index settings like number of shards and number of replicas
- index_mapping.json - Used to specify index config for individual fields