From 37a63d3cd20c2864f065afc03084e5a83c812423 Mon Sep 17 00:00:00 2001 From: Peter Dyson Date: Wed, 28 Nov 2018 21:04:57 +1000 Subject: [PATCH] [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 3f1fc7bb742a8..2e6c148b18f9d 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]