POST seekandsolve3/thread/_update_by_query
{
"query": {
"match_all": {}
},
"script": {
"inline": "String foo = ctx._source.question.tags; if(foo.length()>0){ctx._source.question.tags_completion = /\s/.split(foo)}"
}
}
This does not work ????!!!!, while the code above does:
POST seekandsolve3/thread/_update_by_query
{
"query": {
"match_all": {}
},
"script": {
"inline": """
String foo = ctx._source.question.tags;
if(foo.length()>0){ctx._source.question.tags_completion = /\s/.split(foo)}
"""
}
}