Skip to content

Commit 489f39a

Browse files
author
Antonio Bonuccelli
authored
fixed a consistent typo in type name
fixed a consistent typo causing ``` { "error": { "root_cause": [ { "type": "invalid_type_name_exception", "reason": "mapping type name [_doc] can't start with '_'" } ], "type": "invalid_type_name_exception", "reason": "mapping type name [_doc] can't start with '_'" }, "status": 400 } ``` s/_doc/doc
1 parent 21403a2 commit 489f39a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/reference/mapping/dynamic/templates.asciidoc

+12-12
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ could use the following template:
6161
PUT my_index
6262
{
6363
"mappings": {
64-
"_doc": {
64+
"doc": {
6565
"dynamic_templates": [
6666
{
6767
"integers": {
@@ -90,7 +90,7 @@ PUT my_index
9090
}
9191
}
9292
93-
PUT my_index/_doc/1
93+
PUT my_index/doc/1
9494
{
9595
"my_integer": 5, <1>
9696
"my_string": "Some string" <2>
@@ -117,7 +117,7 @@ fields:
117117
PUT my_index
118118
{
119119
"mappings": {
120-
"_doc": {
120+
"doc": {
121121
"dynamic_templates": [
122122
{
123123
"longs_as_strings": {
@@ -134,7 +134,7 @@ PUT my_index
134134
}
135135
}
136136
137-
PUT my_index/_doc/1
137+
PUT my_index/doc/1
138138
{
139139
"long_num": "5", <1>
140140
"long_text": "foo" <2>
@@ -173,7 +173,7 @@ top-level `full_name` field, except for the `middle` field:
173173
PUT my_index
174174
{
175175
"mappings": {
176-
"_doc": {
176+
"doc": {
177177
"dynamic_templates": [
178178
{
179179
"full_name": {
@@ -190,7 +190,7 @@ PUT my_index
190190
}
191191
}
192192
193-
PUT my_index/_doc/1
193+
PUT my_index/doc/1
194194
{
195195
"name": {
196196
"first": "Alice",
@@ -214,7 +214,7 @@ field, and disables <<doc-values,`doc_values`>> for all non-string fields:
214214
PUT my_index
215215
{
216216
"mappings": {
217-
"_doc": {
217+
"doc": {
218218
"dynamic_templates": [
219219
{
220220
"named_analyzers": {
@@ -240,7 +240,7 @@ PUT my_index
240240
}
241241
}
242242
243-
PUT my_index/_doc/1
243+
PUT my_index/doc/1
244244
{
245245
"english": "Some English text", <1>
246246
"count": 5 <2>
@@ -268,7 +268,7 @@ you will have to search on the exact same value that was indexed.
268268
PUT my_index
269269
{
270270
"mappings": {
271-
"_doc": {
271+
"doc": {
272272
"dynamic_templates": [
273273
{
274274
"strings_as_keywords": {
@@ -298,7 +298,7 @@ before 5.0):
298298
PUT my_index
299299
{
300300
"mappings": {
301-
"_doc": {
301+
"doc": {
302302
"dynamic_templates": [
303303
{
304304
"strings_as_text": {
@@ -326,7 +326,7 @@ disable the storage of these scoring factors in the index and save some space.
326326
PUT my_index
327327
{
328328
"mappings": {
329-
"_doc": {
329+
"doc": {
330330
"dynamic_templates": [
331331
{
332332
"strings_as_keywords": {
@@ -367,7 +367,7 @@ maybe gain some indexing speed:
367367
PUT my_index
368368
{
369369
"mappings": {
370-
"_doc": {
370+
"doc": {
371371
"dynamic_templates": [
372372
{
373373
"unindexed_longs": {

0 commit comments

Comments
 (0)