From d4708b17a5729a92e1a3e646b15d5a8c0701ed5f Mon Sep 17 00:00:00 2001 From: Peter Dyson Date: Wed, 28 Nov 2018 21:04:57 +1000 Subject: [PATCH 1/2] [Docs] Add example for updating meta field (#35893) --- .../mapping/fields/meta-field.asciidoc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/reference/mapping/fields/meta-field.asciidoc b/docs/reference/mapping/fields/meta-field.asciidoc index c59877f231550..8614a4ecccad1 100644 --- a/docs/reference/mapping/fields/meta-field.asciidoc +++ b/docs/reference/mapping/fields/meta-field.asciidoc @@ -27,4 +27,20 @@ PUT my_index <> API. The `_meta` field can be updated on an existing type using the -<> API. +<> API: + +[source,js] +-------------------------------------------------- +PUT my_index/_mapping/_doc +{ + "_meta": { + "class": "MyApp2::User3", + "version": { + "min": "1.3", + "max": "1.5" + } + } +} +-------------------------------------------------- +// CONSOLE +// TEST[continued] From 292a1ca22dc94458ea5c0983b45d39721853e7fd Mon Sep 17 00:00:00 2001 From: lcawl Date: Tue, 12 Feb 2019 10:53:33 -0800 Subject: [PATCH 2/2] [DOCS] Updates syntax of example --- docs/reference/mapping/fields/meta-field.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/mapping/fields/meta-field.asciidoc b/docs/reference/mapping/fields/meta-field.asciidoc index 8614a4ecccad1..02f0816e072d9 100644 --- a/docs/reference/mapping/fields/meta-field.asciidoc +++ b/docs/reference/mapping/fields/meta-field.asciidoc @@ -31,7 +31,7 @@ The `_meta` field can be updated on an existing type using the [source,js] -------------------------------------------------- -PUT my_index/_mapping/_doc +PUT my_index/_mapping/user { "_meta": { "class": "MyApp2::User3",