Elasticsearch update script is not working

As mentioned in https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html
above link tried updating a document in elasticsearch
Version: 5.1.2
request tried:
URL: http://localhost:9200/idx001/sdoc/f07d3ad282fb5303156851317bc36c29/_update
request body: {
"script" : "ctx._source.offices = vijay"
}

Result: { "error": { "root_cause": [ { "type": "remote_transport_exception", "reason": "[ssssss-node-1][127.0.0.1:9300][indices:data/write/update[s]]" } ], "type": "illegal_argument_exception", "reason": "failed to execute script", "caused_by": { "type": "illegal_argument_exception", "reason": "script_lang not supported [painless]" } }, "status": 400 }

please check

can you share your configuration? and a full reproducible example instead of just snippets?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.