Skip to content

Commit

Permalink
[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 Christoph Büscher committed Nov 28, 2018
1 parent 11e487f commit 8029ae2
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/_doc
{
"_meta": {
"class": "MyApp2::User3",
"version": {
"min": "1.3",
"max": "1.5"
}
}
}
--------------------------------------------------
// CONSOLE
// TEST[continued]

0 comments on commit 8029ae2

Please sign in to comment.