Im testing elasticsearch and trying to inject a json file.
For some reason I get "Malformed content, found extra data after parsing: START_OBJECT" error.
Example query:
curl -XPOST 'http://mwdev:9200/test/test/1' -d @test.json
Example content:
{"timestamp":"2016-11-03T01:34:01-04:00","word":"faithful","is_mwu":"no","host":"ws1","ref":"dictionary"}
{"timestamp":"2016-11-03T01:34:02-04:00","word":"drown","is_mwu":"no","host":"ws1","ref":"thesaurus"}
{"timestamp":"2016-11-03T01:34:02-04:00","word":"biggest","is_mwu":"no","host":"ws1","ref":"thesaurus"}
{"timestamp":"2016-11-03T01:34:02-04:00","word":"misconduct","is_mwu":"no","host":"ws1","ref":"thesaurus"}
{"timestamp":"2016-11-03T01:34:03-04:00","word":"transaction","is_mwu":"no","host":"ws1","ref":"dictionary"}
{"timestamp":"2016-11-03T01:34:03-04:00","word":"Pithecus","is_mwu":"no","host":"ws1","ref":"dictionary"}
Any idea why this happens?