Skip to content

Update Index

opensearchservice_update_index R Documentation

Updates an existing OpenSearch index schema and semantic enrichment configuration

Description

Updates an existing OpenSearch index schema and semantic enrichment configuration. This operation allows modification of field mappings and semantic search settings for text fields. Changes to semantic enrichment configuration will apply to newly ingested documents.

Usage

opensearchservice_update_index(DomainName, IndexName, IndexSchema)

Arguments

DomainName

[required] The name of an OpenSearch Service domain. Domain names are unique across the domains owned by an account within an Amazon Web Services Region.

IndexName

[required] The name of the index to update.

IndexSchema

[required] The updated JSON schema for the index including any changes to mappings, settings, and semantic enrichment configuration.

Value

A list with the following syntax:

list(
  Status = "CREATED"|"UPDATED"|"DELETED"
)

Request syntax

svc$update_index(
  DomainName = "string",
  IndexName = "string",
  IndexSchema = list()
)