Skip to content

Commit a874cd4

Browse files
committed
[Docs] Fix code block
1 parent 91aa8fc commit a874cd4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

manage-data/data-store/mapping/dynamic-mapping.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ mapped_pages:
77

88
One of the most important features of {{es}} is that it tries to get out of your way and let you start exploring your data as quickly as possible. To index a document, you don’t have to first create an index, define a mapping type, and define your fields — you can just index a document and the index, type, and fields will display automatically:
99

10-
```console
11-
PUT data/_doc/1 <1>
10+
```json
11+
PUT data/_doc/1 <1>
1212
{ "count": 5 }
1313
```
14-
1514
1. Creates the `data` index, the `_doc` mapping type, and a field called `count` with data type `long`.
1615

17-
1816
The automatic detection and addition of new fields is called *dynamic mapping*. The dynamic mapping rules can be customized to suit your purposes with:
1917

2018
[Dynamic field mappings](dynamic-field-mapping.md)

0 commit comments

Comments
 (0)