From dc663a432b4bc7e951feb020fd31bfa2754083ec Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Mon, 29 Aug 2016 16:00:11 +0200 Subject: [PATCH] Fix docs that uses += to add an element in a list even though painless does not accept it. --- docs/reference/docs/update.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/docs/update.asciidoc b/docs/reference/docs/update.asciidoc index 28e33cb621d..0cf942121af 100644 --- a/docs/reference/docs/update.asciidoc +++ b/docs/reference/docs/update.asciidoc @@ -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" @@ -247,7 +247,7 @@ Timeout waiting for a shard to become available. `wait_for_active_shards`:: -The number of shard copies required to be active before proceeding with the update operation. +The number of shard copies required to be active before proceeding with the update operation. See <> for details. `refresh`::