v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1496640547.5 KB

Creates an OpenSearch index with optional automatic semantic enrichment for specified text fields. Automatic semantic enrichment enables semantic search capabilities without requiring machine learning expertise, improving search relevance by up to 20% by understanding search intent and contextual meaning beyond keyword matching. The semantic enrichment process has zero impact on search latency as sparse encodings are stored directly within the index during indexing. For more information, see <a href="https://docs.aws.amazon.com/opensearch-service/latest/developerguide/opensearch-semantic-enrichment.html">Automatic semantic enrichment</a>.

post/2021-01-01/opensearch/domain/{DomainName}/index

Path parameters

DomainNamestring 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.

Request body

IndexNamestring required

Name of OpenSearch index to be created/updated/retrieved/deleted for customer's domain

IndexSchemaobject required

The JSON schema defining index mappings, settings, and semantic enrichment configuration. The schema specifies which text fields should be automatically enriched for semantic search capabilities and includes OpenSearch index configuration parameters.

Response

Success

Status'CREATED' | 'UPDATED' | 'DELETED' required

The status of the index creation operation.