Elasticsearch how to use a script(file) in an update
- by user2089283
Hi I want to do something like this:
curl -XPOST 'http://localhost:9200/customer92/listbuilder/a10/_update' -d '
{
"_script": {
"script":"summarization"
}
}'
I have a summarization.groovy in my config/scripts folder . I am getting :
{"error":"ElasticsearchIllegalArgumentException[failed to execute script]; nested: GroovyScriptExecutionException[MissingPropertyException[No such property: summarization for class: Script6]]; ","status":400}%
What am I doing wrong ?