Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement