O'Reilly logo
  • Garrett Stibb thinks this is interesting:

Elasticsearch will reply with the following response:


Cover of Elasticsearch Server Second Edition


If you are getting an error, this is because the updated version of ElasticSearch. The new version is to send a "doc" property with the new values in a JSON: So POST {"doc": {"content":"new content"} } OR if you really want the old style: needs an added property to the JSON: "lang":"groovy" Example of JSON is The Update script no longer works without add another property to the JSON namely the "lang":"groovy" An example of the JSON to POST: { "script": "ctx._source.content = \"new content\"", "lang":"groovy" }