parse_exception reason: Failed to derive xcontent

When inserting json to an elasticsearch index, this is a common error. It’s often the result of a simple error in the formatting.

When inserting the following code for a demo, I came acrosss the error:

POST /domaindb_index/domain/_bulk

{ “index”: { “_id”: 1 }}

{ “title”: “google.com”, “ip”: [“216.58.193.78”], “description” : “Words most popular search engine”, “updated_date” : “2015-02-07”}

{ “index”: { “_id”: 2 }}

{ “title”: “yahoo.com”, “ip”: [“206.190.36.45”], “description”, “Search, news, email provider”], “updated_date” : “2013-01-24”}

{ “index”: { “_id”: 3 }}

{ “title”: “bing.com”, “ip”: [“13.107.21.200”], “description”, “updated_date” : “2014-01-24”}

Comments