Module Values.CreateIndexRequestSource

Creates an index within an OpenSearch Serverless collection. Unlike other OpenSearch indexes, indexes created by this API are automatically configured to conduct automatic semantic enrichment ingestion and search. For more information, see About automatic semantic enrichment in the OpenSearch User Guide.

Sourcetype nonrec t = {
  1. id : CollectionId.t;
    (*

    The unique identifier of the collection in which to create the index.

    *)
  2. indexName : IndexName.t;
    (*

    The name of the index to create. Index names must be lowercase and can't begin with underscores (_) or hyphens (-).

    *)
  3. indexSchema : IndexSchema.t option;
    (*

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

    *)
}
Sourceval context_ : string
Sourceval make : ?indexSchema:??? -> id:CollectionId.t -> indexName:IndexName.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of CollectionId.t | `Structure of 'a list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t