Skip to content

Updates an existing index in an OpenSearch Serverless collection

Description

Updates an existing index in an OpenSearch Serverless collection. This operation allows you to modify the index schema, including adding new fields or changing field mappings. You can also enable automatic semantic enrichment ingestion and search. For more information, see About automatic semantic enrichment.

Usage

opensearchserviceserverless_update_index(id, indexName, indexSchema)

Arguments

  • id

    [required] The unique identifier of the collection containing the index to update.

  • indexName

    [required] The name of the index to update.

  • indexSchema

    The updated JSON schema definition for the index, including field mappings and settings.

Value

An empty list.

Request syntax

svc$update_index(
  id = "string",
  indexName = "string",
  indexSchema = list()
)