diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 9b8cea87ce..6f33c1b207 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -64684,11 +64684,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 da08b3dfb0..fb1d1a9b25 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -42397,11 +42397,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 5621257ce9..e4a03b2293 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -88228,7 +88228,7 @@ "name": "IndexOptions", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L262-L267" + "specLocation": "_types/mapping/core.ts#L274-L279" }, { "kind": "enum", @@ -89242,7 +89242,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L306-L337" + "specLocation": "_types/mapping/core.ts#L318-L349" }, { "kind": "enum", @@ -89299,7 +89299,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L269-L272" + "specLocation": "_types/mapping/core.ts#L281-L284" }, { "kind": "enum", @@ -89660,7 +89660,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L235-L260" + "specLocation": "_types/mapping/core.ts#L247-L272" }, { "inherits": { @@ -89889,7 +89889,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L216-L227" + "specLocation": "_types/mapping/core.ts#L228-L239" }, { "inherits": { @@ -90102,7 +90102,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L274-L291" + "specLocation": "_types/mapping/core.ts#L286-L303" }, { "kind": "interface", @@ -90169,7 +90169,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L293-L295" + "specLocation": "_types/mapping/core.ts#L305-L307" }, { "inherits": { @@ -90210,7 +90210,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L297-L304" + "specLocation": "_types/mapping/core.ts#L309-L316" }, { "inherits": { @@ -91002,8 +91002,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": { @@ -91013,7 +91027,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 9503018aae..28a6b4cf38 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -76606,7 +76606,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L306-L337" + "specLocation": "_types/mapping/core.ts#L318-L349" }, { "kind": "interface", @@ -77779,7 +77779,7 @@ "name": "IndexOptions", "namespace": "_types.mapping" }, - "specLocation": "_types/mapping/core.ts#L262-L267" + "specLocation": "_types/mapping/core.ts#L274-L279" }, { "kind": "interface", @@ -78361,7 +78361,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L235-L260" + "specLocation": "_types/mapping/core.ts#L247-L272" }, { "kind": "enum", @@ -79808,7 +79808,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L216-L227" + "specLocation": "_types/mapping/core.ts#L228-L239" }, { "kind": "interface", @@ -79848,8 +79848,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": { @@ -79859,7 +79873,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L210-L214" + "specLocation": "_types/mapping/core.ts#L210-L226" }, { "kind": "interface", @@ -80290,7 +80304,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L269-L272" + "specLocation": "_types/mapping/core.ts#L281-L284" }, { "kind": "interface", @@ -80503,7 +80517,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L274-L291" + "specLocation": "_types/mapping/core.ts#L286-L303" }, { "kind": "enum", @@ -80910,7 +80924,7 @@ } } ], - "specLocation": "_types/mapping/core.ts#L293-L295" + "specLocation": "_types/mapping/core.ts#L305-L307" }, { "kind": "interface", @@ -80951,7 +80965,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 0b14cf8242..ca5f0d85d6 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -5811,7 +5811,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 {