Skip to content

Commit

Permalink
[Docs] Fix code block
Browse files Browse the repository at this point in the history
  • Loading branch information
wajihaparvez committed Feb 12, 2025
1 parent 91aa8fc commit a874cd4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions manage-data/data-store/mapping/dynamic-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ mapped_pages:

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:

```console
PUT data/_doc/1 <1>
```json
PUT data/_doc/1 <1>
{ "count": 5 }
```

1. Creates the `data` index, the `_doc` mapping type, and a field called `count` with data type `long`.


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

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

0 comments on commit a874cd4

Please sign in to comment.