Skip to content

Commit

Permalink
[6.1] [Docs] Add example for updating meta field (#35893)
Browse files Browse the repository at this point in the history
  • Loading branch information
geekpete authored and lcawl committed Feb 12, 2019
1 parent 632d94a commit 24af8b3
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/reference/mapping/fields/meta-field.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,20 @@ PUT my_index
<<indices-get-mapping,GET mapping>> API.

The `_meta` field can be updated on an existing type using the
<<indices-put-mapping,PUT mapping>> API.
<<indices-put-mapping,PUT mapping>> API:

[source,js]
--------------------------------------------------
PUT my_index/_mapping/user
{
"_meta": {
"class": "MyApp2::User3",
"version": {
"min": "1.3",
"max": "1.5"
}
}
}
--------------------------------------------------
// CONSOLE
// TEST[continued]

0 comments on commit 24af8b3

Please sign in to comment.