Skip to content

Commit 434e1a2

Browse files
geekpetelcawl
authored andcommitted
[6.2] [Docs] Add example for updating meta field (#35893) (#38006)
1 parent f2df48b commit 434e1a2

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/user
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)