From c17606ab6d93dc07e3ee4108a41887373c9c2cdc Mon Sep 17 00:00:00 2001 From: Peter Dyson Date: Wed, 28 Nov 2018 21:04:57 +1000 Subject: [PATCH 1/3] [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 6daba1d8e9fc332be318010579e9df72328b5c9b Mon Sep 17 00:00:00 2001 From: Peter Dyson Date: Wed, 6 Feb 2019 08:37:31 +1000 Subject: [PATCH 2/3] adjusting for correct type --- 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..5d1db88c97eec 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/doc { "_meta": { "class": "MyApp2::User3", From ee60697b70b65ba23c1eccb9b3f9b6d5b19f8c7a Mon Sep 17 00:00:00 2001 From: Lisa Cawley Date: Wed, 6 Feb 2019 10:28:32 +1000 Subject: [PATCH 3/3] Update docs/reference/mapping/fields/meta-field.asciidoc Co-Authored-By: geekpete --- 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 5d1db88c97eec..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",