Skip to content

Commit 8029ae2

Browse files
geekpeteChristoph Büscher
authored and
Christoph Büscher
committed
[Docs] Add example for updating meta field (#35893)
1 parent 11e487f commit 8029ae2

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

docs/reference/mapping/fields/meta-field.asciidoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,20 @@ PUT my_index
2727
<<indices-get-mapping,GET mapping>> API.
2828

2929
The `_meta` field can be updated on an existing type using the
30-
<<indices-put-mapping,PUT mapping>> API.
30+
<<indices-put-mapping,PUT mapping>> API:
31+
32+
[source,js]
33+
--------------------------------------------------
34+
PUT my_index/_mapping/_doc
35+
{
36+
"_meta": {
37+
"class": "MyApp2::User3",
38+
"version": {
39+
"min": "1.3",
40+
"max": "1.5"
41+
}
42+
}
43+
}
44+
--------------------------------------------------
45+
// CONSOLE
46+
// TEST[continued]

0 commit comments

Comments
 (0)