We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POST /website/blog/1/_update { "script" : "ctx._source.tags+=new_tag", "params" : { "new_tag" : "search" } } 会报 illegal_argument_exception。 此处中的"script" : "ctx._source.tags+=new_tag",修改为"script" : "ctx._source.tags+=params.new_tag", get以后得到的值为null。
通过实践,发现params中的所有变量都无法拿到。都是报illegal_argument_exception。
The text was updated successfully, but these errors were encountered:
是在什么版本上面测试的?
Sorry, something went wrong.
No branches or pull requests
POST /website/blog/1/_update
{
"script" : "ctx._source.tags+=new_tag",
"params" : {
"new_tag" : "search"
}
}
会报 illegal_argument_exception。
此处中的"script" : "ctx._source.tags+=new_tag",修改为"script" : "ctx._source.tags+=params.new_tag",
get以后得到的值为null。
通过实践,发现params中的所有变量都无法拿到。都是报illegal_argument_exception。
The text was updated successfully, but these errors were encountered: