Skip to content

Commit

Permalink
[DOCS] Update snippet callouts in mapping.asciidoc (elastic#47109)
Browse files Browse the repository at this point in the history
Updates the example mapping to make it more clear what is for each numbered callout.
  • Loading branch information
stiltz authored and jrodewig committed Sep 25, 2019
1 parent c26e1f9 commit 3e4608a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/reference/mapping.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ PUT my_index <1>
"_doc": { <2>
"properties": { <3>
"title": { "type": "text" }, <4>
"name": { "type": "text" }, <4>
"age": { "type": "integer" }, <4>
"name": { "type": "text" }, <5>
"age": { "type": "integer" }, <6>
"created": {
"type": "date", <4>
"type": "date", <7>
"format": "strict_date_optional_time||epoch_millis"
}
}
Expand All @@ -153,7 +153,10 @@ PUT my_index <1>
<1> Create an index called `my_index`.
<2> Add a mapping type called `doc`.
<3> Specify fields or _properties_.
<4> Specify the data `type` and mapping for each field.
<4> Specify that the `title` field contains `text` values.
<5> Specify that the `name` field contains `text` values.
<6> Specify that the `age` field contains `integer` values.
<7> Specify that the `created` field contains `date` values in two possible formats.


--
Expand Down

0 comments on commit 3e4608a

Please sign in to comment.