Skip to content

Instantly share code, notes, and snippets.

@sacheendra
Created April 12, 2015 12:38
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 sacheendra/22424ca9b3caf1d2a0b1 to your computer and use it in GitHub Desktop.
Save sacheendra/22424ca9b3caf1d2a0b1 to your computer and use it in GitHub Desktop.
Elasticsearch says script is missing, but script is present.
curl -XPOST localhost:9200/test/Materials/Steel/_update?pretty=true -d '
{
"lang": "groovy",
"script_file": "updateDocument",
"scripted_upsert":true,
"params": {
"update": {
"foo": "bar"
},
"timestamp": 130
}
}'
Response:
{
"error" : "ActionRequestValidationException[Validation Failed: 1: script or doc is missing;]",
"status" : 400
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment