Update put-mapping.md: add "dynamic" (#3384)
* Update put-mapping.md: add an example for "dynamic": "strict" in index mapping JSON * Apply suggestions from code review --------- Co-authored-by: Aria Marble <111301581+ariamarble@users.noreply.github.com>
This commit is contained in:
parent
0f44dc3a9e
commit
eead5ecf29
|
@ -40,6 +40,23 @@ The request body must contain `properties`, which has all of the mappings that y
|
|||
}
|
||||
```
|
||||
|
||||
## Optional request body fields
|
||||
|
||||
### dynamic
|
||||
|
||||
You can make the document structure match the structure of the index mapping by setting the `dynamic` request body field to `strict`, as seen in the following example:
|
||||
|
||||
```json
|
||||
{
|
||||
"properties":{
|
||||
"dynamic": "strict",
|
||||
"color":{
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Optional query parameters
|
||||
|
||||
Optionally, you can add query parameters to make a more specific request. For example, to skip any missing or closed indexes in the response, you can add the `ignore_unavailable` query parameter to your request as follows:
|
||||
|
|
Loading…
Reference in New Issue