Created
April 12, 2015 12:38
-
-
Save sacheendra/22424ca9b3caf1d2a0b1 to your computer and use it in GitHub Desktop.
Elasticsearch says script is missing, but script is present.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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