for additional reviewer suggestions
Signed-off-by: alicejw <alicejw@amazon.com>
This commit is contained in:
parent
fc278e9b98
commit
32b5b0771f
|
@ -10,7 +10,7 @@ nav_order: 220
|
|||
Introduced 1.0
|
||||
{: .label .label-purple }
|
||||
|
||||
If you want to create or add mappings and fields to an index, you can use the put mapping API operation.
|
||||
If you want to create or add mappings and fields to an index, you can use the put mapping API operation. For an existing mapping, this operation updates the mapping.
|
||||
|
||||
You can't use this operation to update mappings that already map to existing data in the index. You must first create a new index with your desired mappings, and then use the [reindex API operation]({{site.url}}{{site.baseurl}}/opensearch/reindex-data) to map all the documents from your old index to the new index. If you don't want any downtime while you re-index your indexes, you can use [aliases]({{site.url}}{{site.baseurl}}/opensearch/index-alias).
|
||||
|
||||
|
@ -47,11 +47,11 @@ PUT /<target-index1>,<target-index2>/_mapping
|
|||
|
||||
## URL parameters
|
||||
|
||||
All update mapping parameters are optional.
|
||||
All put mapping parameters are optional.
|
||||
|
||||
Parameter | Data Type | Description
|
||||
:--- | :--- | :---
|
||||
<target-index> | N/A | Specifies an index to associate the mapping. If you do not specify this parameter, OpenSearch adds the mapping to all indexes within the cluster.
|
||||
<target-index> | N/A | Specifies an index with which to associate the mapping. If you do not specify this parameter, OpenSearch adds the mapping to all indexes within the cluster.
|
||||
allow_no_indices | Boolean | Whether to ignore wildcards that don’t match any indexes. Default is `true`.
|
||||
expand_wildcards | String | Expands wildcard expressions to different indexes. Combine multiple values with commas. Available values are `all` (match all indexes), `open` (match open indexes), `closed` (match closed indexes), `hidden` (match hidden indexes), 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 indexes in the response.
|
||||
|
@ -61,7 +61,7 @@ write_index_only | Boolean | Whether OpenSearch should apply mapping updates onl
|
|||
|
||||
## Request body
|
||||
|
||||
The request body must contain `properties`, which has all of the mappings that you want to update.
|
||||
The request body must contain `properties`, which has all of the mappings that you want to create or update.
|
||||
|
||||
```json
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue