Skip to content

Instantly share code, notes, and snippets.

@bragboy
Created March 10, 2019 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bragboy/1a70d3a43242b15723a27c8ccc256bcc to your computer and use it in GitHub Desktop.
Save bragboy/1a70d3a43242b15723a27c8ccc256bcc to your computer and use it in GitHub Desktop.
Bulk Index for employees
{"index": {"_index": "employees","_type": "_doc","_id": "1"}}
{"employee": "Emp 01","city": "Chicago","age": 24}
{"index": {"_index": "employees","_type": "_doc","_id": "2"}}
{"employee": "Emp 02","city": "San Francisco","age": 26}
{"index": {"_index": "employees","_type": "_doc","_id": "3"}}
{"employee": "Emp 03","city": "San Francisco","age": 28}
{"index": {"_index": "employees","_type": "_doc","_id": "4"}}
{"employee": "Emp 04","city": "San Francisco","age": 30}
{"index": {"_index": "employees","_type": "_doc","_id": "5"}}
{"employee": "Emp 05","city": "San Francisco","age": 32}
{"index": {"_index": "employees","_type": "_doc","_id": "6"}}
{"employee": "Emp 06","city": "Chicago","age": 34}
{"index": {"_index": "employees","_type": "_doc","_id": "7"}}
{"employee": "Emp 07","city": "Chicago","age": 36}
{"index": {"_index": "employees","_type": "_doc","_id": "8"}}
{"employee": "Emp 08","city": "Chicago","age": 38}
{"index": {"_index": "employees","_type": "_doc","_id": "9"}}
{"employee": "Emp 09","city": "Amsterdam","age": 40}
{"index": {"_index": "employees","_type": "_doc","_id": "10"}}
{"employee": "Emp 10","city": "Madrid","age": 42}
{"index": {"_index": "employees","_type": "_doc","_id": "11"}}
{"employee": "Emp 11","city": "Amsterdam","age": 44}
{"index": {"_index": "employees","_type": "_doc","_id": "12"}}
{"employee": "Emp 12","city": "Chicago","age": 46}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment