When trying to import sample data into elasticsearch, getting the following error:
"type" : "action_request_validation_exception",
"reason" : "Validation Failed: 1: type is missing;2: type is missing;3: type is missing;"
Below shows the contents of the json file:
{"index":{"_index":"precommit","_id":0}}
{"Fail":0,"SN":0,"WeekNumber":1,"User":"builder","Failure Category":"PASS"}
{"index":{"_index":"precommit","_id":1}}
{"Fail":0,"SN":1,"WeekNumber":1,"User":"builder","Failure Category":"PASS"}
{"index":{"_index":"precommit","_id":2}}
{"Fail":0,"SN":2,"WeekNumber":1,"User": "builder","Failure Category":"PASS"}
Any help appreciated!
Thanks!