diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index f8c3226d40..0614451c79 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -69518,6 +69518,9 @@ "search_inference_id": { "$ref": "#/components/schemas/_types.Id" }, + "index_options": { + "$ref": "#/components/schemas/_types.mapping.SemanticTextIndexOptions" + }, "chunking_settings": { "$ref": "#/components/schemas/_types.mapping.ChunkingSettings" } @@ -69526,6 +69529,14 @@ "type" ] }, + "_types.mapping.SemanticTextIndexOptions": { + "type": "object", + "properties": { + "dense_vector": { + "$ref": "#/components/schemas/_types.mapping.DenseVectorIndexOptions" + } + } + }, "_types.mapping.ChunkingSettings": { "type": "object", "properties": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index e556f6a6a2..3f004467aa 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -46069,6 +46069,9 @@ "search_inference_id": { "$ref": "#/components/schemas/_types.Id" }, + "index_options": { + "$ref": "#/components/schemas/_types.mapping.SemanticTextIndexOptions" + }, "chunking_settings": { "$ref": "#/components/schemas/_types.mapping.ChunkingSettings" } @@ -46077,6 +46080,14 @@ "type" ] }, + "_types.mapping.SemanticTextIndexOptions": { + "type": "object", + "properties": { + "dense_vector": { + "$ref": "#/components/schemas/_types.mapping.DenseVectorIndexOptions" + } + } + }, "_types.mapping.ChunkingSettings": { "type": "object", "properties": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 1785cbec1e..afd7e105ce 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -80625,7 +80625,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L55-L57" + "specLocation": "_types/mapping/core.ts#L56-L58" }, { "kind": "interface", @@ -80746,7 +80746,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L59-L74" + "specLocation": "_types/mapping/core.ts#L60-L75" }, { "kind": "interface", @@ -80781,7 +80781,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L186-L189" + "specLocation": "_types/mapping/core.ts#L187-L190" }, { "kind": "interface", @@ -81046,7 +81046,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L46-L49" + "specLocation": "_types/mapping/core.ts#L47-L50" }, { "kind": "interface", @@ -81214,7 +81214,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L90-L100" + "specLocation": "_types/mapping/core.ts#L91-L101" }, { "kind": "interface", @@ -81348,7 +81348,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L76-L88" + "specLocation": "_types/mapping/core.ts#L77-L89" }, { "kind": "interface", @@ -81646,7 +81646,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L51-L53" + "specLocation": "_types/mapping/core.ts#L52-L54" }, { "kind": "interface", @@ -81681,7 +81681,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L166-L169" + "specLocation": "_types/mapping/core.ts#L167-L170" }, { "kind": "interface", @@ -82006,7 +82006,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L335-L366" + "specLocation": "_types/mapping/core.ts#L342-L373" }, { "kind": "interface", @@ -82626,7 +82626,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L156-L159" + "specLocation": "_types/mapping/core.ts#L157-L160" }, { "kind": "interface", @@ -82910,7 +82910,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L161-L164" + "specLocation": "_types/mapping/core.ts#L162-L165" }, { "kind": "interface", @@ -83190,7 +83190,7 @@ "name": "IndexOptions", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L291-L296" + "specLocation": "_types/mapping/core.ts#L298-L303" }, { "kind": "interface", @@ -83225,7 +83225,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L171-L174" + "specLocation": "_types/mapping/core.ts#L172-L175" }, { "kind": "interface", @@ -83455,7 +83455,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L102-L106" + "specLocation": "_types/mapping/core.ts#L103-L107" }, { "kind": "interface", @@ -83632,7 +83632,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L108-L127" + "specLocation": "_types/mapping/core.ts#L109-L128" }, { "kind": "interface", @@ -83667,7 +83667,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L176-L179" + "specLocation": "_types/mapping/core.ts#L177-L180" }, { "kind": "interface", @@ -83772,7 +83772,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L264-L289" + "specLocation": "_types/mapping/core.ts#L271-L296" }, { "kind": "enum", @@ -83992,7 +83992,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L129-L149" + "specLocation": "_types/mapping/core.ts#L130-L150" }, { "kind": "interface", @@ -84054,7 +84054,7 @@ "name": "OnScriptError", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L151-L154" + "specLocation": "_types/mapping/core.ts#L152-L155" }, { "kind": "interface", @@ -84135,7 +84135,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L202-L204" + "specLocation": "_types/mapping/core.ts#L203-L205" }, { "kind": "interface", @@ -84764,7 +84764,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L206-L209" + "specLocation": "_types/mapping/core.ts#L207-L210" }, { "kind": "interface", @@ -84799,7 +84799,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L211-L214" + "specLocation": "_types/mapping/core.ts#L212-L215" }, { "kind": "interface", @@ -85087,7 +85087,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L196-L200" + "specLocation": "_types/mapping/core.ts#L197-L201" }, { "kind": "interface", @@ -85222,7 +85222,28 @@ } } ], - "specLocation": "_types/mapping/core.ts#L245-L256" + "specLocation": "_types/mapping/core.ts#L252-L263" + }, + { + "kind": "interface", + "name": { + "name": "SemanticTextIndexOptions", + "namespace": "_types.mapping" + }, + "properties": [ + { + "name": "dense_vector", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "DenseVectorIndexOptions", + "namespace": "_types.mapping" + } + } + } + ], + "specLocation": "_types/mapping/SemanticTextIndexOptions.ts#L22-L24" }, { "kind": "interface", @@ -85286,6 +85307,18 @@ } } }, + { + "description": "Settings for index_options that override any defaults used by semantic_text, for example\nspecific quantization settings.", + "name": "index_options", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "SemanticTextIndexOptions", + "namespace": "_types.mapping" + } + } + }, { "description": "Settings for chunking text into smaller passages. If specified, these will override the\nchunking settings sent in the inference endpoint associated with inference_id. If chunking settings are updated,\nthey will not be applied to existing documents until they are reindexed.", "name": "chunking_settings", @@ -85299,7 +85332,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L220-L243" + "specLocation": "_types/mapping/core.ts#L221-L250" }, { "kind": "interface", @@ -85405,7 +85438,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L181-L184" + "specLocation": "_types/mapping/core.ts#L182-L185" }, { "kind": "interface", @@ -85552,7 +85585,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L216-L218" + "specLocation": "_types/mapping/core.ts#L217-L219" }, { "kind": "enum", @@ -85730,7 +85763,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L298-L301" + "specLocation": "_types/mapping/core.ts#L305-L308" }, { "kind": "interface", @@ -85943,7 +85976,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L303-L320" + "specLocation": "_types/mapping/core.ts#L310-L327" }, { "kind": "enum", @@ -86326,7 +86359,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L191-L194" + "specLocation": "_types/mapping/core.ts#L192-L195" }, { "kind": "interface", @@ -86350,7 +86383,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L322-L324" + "specLocation": "_types/mapping/core.ts#L329-L331" }, { "kind": "interface", @@ -86391,7 +86424,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L326-L333" + "specLocation": "_types/mapping/core.ts#L333-L340" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 8127fe577c..c5b4d65330 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -5937,11 +5937,16 @@ export interface MappingSearchAsYouTypeProperty extends MappingCorePropertyBase type: 'search_as_you_type' } +export interface MappingSemanticTextIndexOptions { + dense_vector?: MappingDenseVectorIndexOptions +} + export interface MappingSemanticTextProperty { type: 'semantic_text' meta?: Record inference_id?: Id search_inference_id?: Id + index_options?: MappingSemanticTextIndexOptions chunking_settings?: MappingChunkingSettings } diff --git a/specification/_types/mapping/SemanticTextIndexOptions.ts b/specification/_types/mapping/SemanticTextIndexOptions.ts new file mode 100644 index 0000000000..6876b30b5b --- /dev/null +++ b/specification/_types/mapping/SemanticTextIndexOptions.ts @@ -0,0 +1,24 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import { DenseVectorIndexOptions } from './DenseVectorProperty' + +export class SemanticTextIndexOptions { + dense_vector?: DenseVectorIndexOptions +} diff --git a/specification/_types/mapping/core.ts b/specification/_types/mapping/core.ts index 01a2f6400b..b7fd146da7 100644 --- a/specification/_types/mapping/core.ts +++ b/specification/_types/mapping/core.ts @@ -40,6 +40,7 @@ import { NumericFielddata } from '@indices/_types/NumericFielddata' import { Dictionary } from '@spec_utils/Dictionary' import { ChunkingSettings } from './ChunkingSettings' import { Property, PropertyBase } from './Property' +import { SemanticTextIndexOptions } from './SemanticTextIndexOptions' import { TermVectorOption } from './TermVectorOption' import { TimeSeriesMetricType } from './TimeSeriesMetricType' @@ -234,6 +235,12 @@ export class SemanticTextProperty { */ search_inference_id?: Id + /** + * Settings for index_options that override any defaults used by semantic_text, for example + * specific quantization settings. + */ + index_options?: SemanticTextIndexOptions + /** * Settings for chunking text into smaller passages. If specified, these will override the * chunking settings sent in the inference endpoint associated with inference_id. If chunking settings are updated,