Skip to content

Commit 9bac2ae

Browse files
synhershkomayya-sharipova
authored andcommitted
Remove usage of explicit type in docs (elastic#29667)
1 parent 9548c53 commit 9bac2ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/reference/indices/templates.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PUT _template/template_1
2323
"number_of_shards": 1
2424
},
2525
"mappings": {
26-
"type1": {
26+
"_doc": {
2727
"_source": {
2828
"enabled": false
2929
},
@@ -157,7 +157,7 @@ PUT /_template/template_1
157157
"number_of_shards" : 1
158158
},
159159
"mappings" : {
160-
"type1" : {
160+
"_doc" : {
161161
"_source" : { "enabled" : false }
162162
}
163163
}
@@ -171,7 +171,7 @@ PUT /_template/template_2
171171
"number_of_shards" : 1
172172
},
173173
"mappings" : {
174-
"type1" : {
174+
"_doc" : {
175175
"_source" : { "enabled" : true }
176176
}
177177
}
@@ -180,7 +180,7 @@ PUT /_template/template_2
180180
// CONSOLE
181181
// TEST[s/^/DELETE _template\/template_1\n/]
182182

183-
The above will disable storing the `_source` on all `type1` types, but
183+
The above will disable storing the `_source`, but
184184
for indices that start with `te*`, `_source` will still be enabled.
185185
Note, for mappings, the merging is "deep", meaning that specific
186186
object/property based mappings can easily be added/overridden on higher

0 commit comments

Comments
 (0)