Skip to content
New issue

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

文档的部分更新(illegal_argument_exception) #518

Open
YuanTianyang opened this issue Aug 29, 2017 · 1 comment
Open

文档的部分更新(illegal_argument_exception) #518

YuanTianyang opened this issue Aug 29, 2017 · 1 comment

Comments

@YuanTianyang
Copy link

YuanTianyang commented Aug 29, 2017

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。

@medcl
Copy link
Member

medcl commented Sep 6, 2017

是在什么版本上面测试的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants