This is My first Error because I learn ES my English is not goods so please help me:
i want user script
and i send a post
POST /test_index/test_type/4/_update
{
"script": {
"lang": "groovy",
"file": "test-add-tags",
"params": {
"new_tag": "tag1"
}
}
}
but the result is error :
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "[script] unknown field [file], parser not found"
}
],
"type": "illegal_argument_exception",
"reason": "[script] unknown field [file], parser not found"
},
"status": 400
}
and this is my script sources
and in test-add-tags.groovy :
ctx._source.tags+=new_tag
please help me think you
!!!!!!
and i user es in 6.2.4