Missed some files

Signed-off-by: keithhc2 <keithhc2@users.noreply.github.com>
This commit is contained in:
keithhc2 2022-01-26 14:25:06 -08:00
parent 70a35c6477
commit 34bc1f802a
10 changed files with 83 additions and 8 deletions

View File

@ -2,7 +2,7 @@
layout: default layout: default
title: Alias title: Alias
parent: REST API reference parent: REST API reference
nav_order: 5 nav_order: 20
--- ---
# Alias # Alias

View File

@ -2,7 +2,7 @@
layout: default layout: default
title: Cluster allocation explain title: Cluster allocation explain
parent: REST API reference parent: REST API reference
nav_order: 10 nav_order: 50
--- ---
# Cluster allocation explain # Cluster allocation explain

View File

@ -2,7 +2,7 @@
layout: default layout: default
title: Cluster health title: Cluster health
parent: REST API reference parent: REST API reference
nav_order: 15 nav_order: 55
--- ---
# Cluster health # Cluster health

View File

@ -2,7 +2,7 @@
layout: default layout: default
title: Cluster settings title: Cluster settings
parent: REST API reference parent: REST API reference
nav_order: 20 nav_order: 60
--- ---
# Cluster settings # Cluster settings

View File

@ -3,7 +3,7 @@ layout: default
title: Document APIs title: Document APIs
parent: REST API reference parent: REST API reference
has_children: true has_children: true
nav_order: 7 nav_order: 40
redirect_from: redirect_from:
- /opensearch/rest-api/document-apis/ - /opensearch/rest-api/document-apis/
--- ---

View File

@ -0,0 +1,75 @@
---
layout: default
title: Put mapping
parent: REST API reference
nav_order: 30
---
# Put mapping
Introduced 1.0
{: .label .label-purple }
The put mapping API operation lets you add new mappings and fields to an index.
## Example
```json
PUT /sample-index/_mapping
{
"properties": {
"age": {
"type": "integer"
},
"occupation":{
"type": "text"
}
}
}
```
## Path and HTTP methods
```
PUT /<target-index>/_mapping
PUT /_mapping
```
## URL parameters
All put mapping parameters are optional.
Parameter | Data Type | Description
:--- | :--- | :---
&lt;target-index&gt; | Data Type | The index to add the mapping to. If you do not specify this parameter, OpenSearch adds the mapping to all indices within the cluster.
allow_no_indices | Boolean | Whether to ignore wildcards that dont match any indices. Default is `true`.
expand_wildcards | String | Expands wildcard expressions to different indices. Combine multiple values with commas. Available values are `all` (match all indices), `open` (match open indices), `closed` (match closed indices), `hidden` (match hidden indices), and `none` (do not accept wildcard expressions), which must be used with `open`, `closed`, or both. Default is `open`.
ignore_unavailable | Boolean | If true, OpenSearch does not include missing or closed indices in the response.
master_timeout | Time | How long to wait for a connection to the master node. Default is `30s`.
timeout | Time | How long to wait for the response to return. Default is `30s`.
write_index_only | Boolean | Whether OpenSearch should add the mapping only to the write index.
## Request body
The request body must contain the `properties` object, which has all of the mappings that you want to add.
```json
{
"properties":{
"color":{
"type": "text"
},
"year":{
"type": "integer"
}
}
}
```
## Response
```json
{
"acknowledged": true
}
```

View File

@ -2,7 +2,7 @@
layout: default layout: default
title: Remote cluster information title: Remote cluster information
parent: REST API reference parent: REST API reference
nav_order: 25 nav_order: 70
--- ---
# Remote cluster information # Remote cluster information

View File

@ -2,7 +2,7 @@
layout: default layout: default
title: Search title: Search
parent: REST API reference parent: REST API reference
nav_order: 4 nav_order: 10
--- ---
# Search # Search

View File

@ -2,7 +2,7 @@
layout: default layout: default
title: Update mapping title: Update mapping
parent: REST API reference parent: REST API reference
nav_order: 6 nav_order: 35
--- ---
# Update mapping # Update mapping

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 MiB

After

Width:  |  Height:  |  Size: 3.4 MiB