Module Values.CreateIndexRequestSource

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 Automatic semantic enrichment.

Sourcetype nonrec t = {
  1. domainName : DomainName.t;
  2. indexName : IndexName.t;
    (*

    The name of the index to create. Must be between 1 and 255 characters and follow OpenSearch naming conventions.

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

    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.

    *)
}
Sourceval context_ : string
Sourceval make : domainName:DomainName.t -> indexName:IndexName.t -> indexSchema:IndexSchema.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of DomainName.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