Possible bug?!

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)}
"""
}
}

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