Merge pull request #20213 from jimferenczi/painless_list_add
Fix docs that uses += to add an element in a list even though painless does not accept it.
This commit is contained in:
commit
accb636824
|
@ -48,7 +48,7 @@ will still add it, since its a list):
|
|||
--------------------------------------------------
|
||||
curl -XPOST 'localhost:9200/test/type1/1/_update' -d '{
|
||||
"script" : {
|
||||
"inline": "ctx._source.tags += params.tag",
|
||||
"inline": "ctx._source.tags.add(params.tag)",
|
||||
"lang": "painless",
|
||||
"params" : {
|
||||
"tag" : "blue"
|
||||
|
|
Loading…
Reference in New Issue