diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 02569f8681..cf8a097bc3 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -64731,11 +64731,13 @@ }, "inference_id": { "$ref": "#/components/schemas/_types:Id" + }, + "search_inference_id": { + "$ref": "#/components/schemas/_types:Id" } }, "required": [ - "type", - "inference_id" + "type" ] }, "_types.mapping:SparseVectorProperty": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 077160a516..8652d29fbb 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -42377,11 +42377,13 @@ }, "inference_id": { "$ref": "#/components/schemas/_types:Id" + }, + "search_inference_id": { + "$ref": "#/components/schemas/_types:Id" } }, "required": [ - "type", - "inference_id" + "type" ] }, "_types.mapping:SparseVectorProperty": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 1e4b6dbf31..33003db277 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -88120,7 +88120,7 @@ "name": "IndexOptions", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L262-L267" + "specLocation": "_types/mapping/core.ts#L274-L279" }, { "kind": "enum", @@ -89134,7 +89134,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L306-L337" + "specLocation": "_types/mapping/core.ts#L318-L349" }, { "kind": "enum", @@ -89191,7 +89191,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L269-L272" + "specLocation": "_types/mapping/core.ts#L281-L284" }, { "kind": "enum", @@ -89552,7 +89552,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L235-L260" + "specLocation": "_types/mapping/core.ts#L247-L272" }, { "inherits": { @@ -89781,7 +89781,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L216-L227" + "specLocation": "_types/mapping/core.ts#L228-L239" }, { "inherits": { @@ -89994,7 +89994,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L274-L291" + "specLocation": "_types/mapping/core.ts#L286-L303" }, { "kind": "interface", @@ -90061,7 +90061,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L293-L295" + "specLocation": "_types/mapping/core.ts#L305-L307" }, { "inherits": { @@ -90102,7 +90102,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L297-L304" + "specLocation": "_types/mapping/core.ts#L309-L316" }, { "inherits": { @@ -90894,8 +90894,22 @@ } }, { + "description": "Inference endpoint that will be used to generate embeddings for the field.\nThis parameter cannot be updated. Use the Create inference API to create the endpoint.\nIf `search_inference_id` is specified, the inference endpoint will only be used at index time.", "name": "inference_id", - "required": true, + "required": false, + "serverDefault": ".elser-2-elasticsearch", + "type": { + "kind": "instance_of", + "type": { + "name": "Id", + "namespace": "_types" + } + } + }, + { + "description": "Inference endpoint that will be used to generate embeddings at query time.\nYou can update this parameter by using the Update mapping API. Use the Create inference API to create the endpoint.\nIf not specified, the inference endpoint defined by inference_id will be used at both index and query time.", + "name": "search_inference_id", + "required": false, "type": { "kind": "instance_of", "type": { @@ -90905,7 +90919,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L210-L214" + "specLocation": "_types/mapping/core.ts#L210-L226" }, { "inherits": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 1feed84b09..ed39534ef3 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -76633,7 +76633,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L306-L337" + "specLocation": "_types/mapping/core.ts#L318-L349" }, { "kind": "interface", @@ -77806,7 +77806,7 @@ "name": "IndexOptions", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L262-L267" + "specLocation": "_types/mapping/core.ts#L274-L279" }, { "kind": "interface", @@ -78388,7 +78388,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L235-L260" + "specLocation": "_types/mapping/core.ts#L247-L272" }, { "kind": "enum", @@ -79835,7 +79835,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L216-L227" + "specLocation": "_types/mapping/core.ts#L228-L239" }, { "kind": "interface", @@ -79875,8 +79875,22 @@ } }, { + "description": "Inference endpoint that will be used to generate embeddings for the field.\nThis parameter cannot be updated. Use the Create inference API to create the endpoint.\nIf `search_inference_id` is specified, the inference endpoint will only be used at index time.", "name": "inference_id", - "required": true, + "required": false, + "serverDefault": ".elser-2-elasticsearch", + "type": { + "kind": "instance_of", + "type": { + "name": "Id", + "namespace": "_types" + } + } + }, + { + "description": "Inference endpoint that will be used to generate embeddings at query time.\nYou can update this parameter by using the Update mapping API. Use the Create inference API to create the endpoint.\nIf not specified, the inference endpoint defined by inference_id will be used at both index and query time.", + "name": "search_inference_id", + "required": false, "type": { "kind": "instance_of", "type": { @@ -79886,7 +79900,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L210-L214" + "specLocation": "_types/mapping/core.ts#L210-L226" }, { "kind": "interface", @@ -80317,7 +80331,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L269-L272" + "specLocation": "_types/mapping/core.ts#L281-L284" }, { "kind": "interface", @@ -80530,7 +80544,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L274-L291" + "specLocation": "_types/mapping/core.ts#L286-L303" }, { "kind": "enum", @@ -80937,7 +80951,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L293-L295" + "specLocation": "_types/mapping/core.ts#L305-L307" }, { "kind": "interface", @@ -80978,7 +80992,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L297-L304" + "specLocation": "_types/mapping/core.ts#L309-L316" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 6cc6cccff2..9f5da2934c 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -5801,7 +5801,8 @@ export interface MappingSearchAsYouTypeProperty extends MappingCorePropertyBase export interface MappingSemanticTextProperty { type: 'semantic_text' meta?: Record - inference_id: Id + inference_id?: Id + search_inference_id?: Id } export interface MappingShapeProperty extends MappingDocValuesPropertyBase { diff --git a/specification/_types/mapping/core.ts b/specification/_types/mapping/core.ts index c1233a18d9..52db74be88 100644 --- a/specification/_types/mapping/core.ts +++ b/specification/_types/mapping/core.ts @@ -210,7 +210,19 @@ export class SparseVectorProperty extends PropertyBase { export class SemanticTextProperty { type: 'semantic_text' meta?: Dictionary - inference_id: Id + /** + * Inference endpoint that will be used to generate embeddings for the field. + * This parameter cannot be updated. Use the Create inference API to create the endpoint. + * If `search_inference_id` is specified, the inference endpoint will only be used at index time. + * @server_default .elser-2-elasticsearch + */ + inference_id?: Id + /** + * Inference endpoint that will be used to generate embeddings at query time. + * You can update this parameter by using the Update mapping API. Use the Create inference API to create the endpoint. + * If not specified, the inference endpoint defined by inference_id will be used at both index and query time. + */ + search_inference_id?: Id } export class SearchAsYouTypeProperty extends CorePropertyBase {