Skip to content

Commit 2b3e6c7

Browse files
Add search_inference_id property (#3901) (#3941)
--------- Co-authored-by: Quentin Pradet <[email protected]> (cherry picked from commit e4cedee) Co-authored-by: Sergey Tihon <[email protected]>
1 parent e898ca2 commit 2b3e6c7

File tree

6 files changed

+71
-26
lines changed

6 files changed

+71
-26
lines changed

output/openapi/elasticsearch-openapi.json

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

+24-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

+24-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_types/mapping/core.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,19 @@ export class SparseVectorProperty extends PropertyBase {
206206
export class SemanticTextProperty {
207207
type: 'semantic_text'
208208
meta?: Dictionary<string, string>
209-
inference_id: Id
209+
/**
210+
* Inference endpoint that will be used to generate embeddings for the field.
211+
* This parameter cannot be updated. Use the Create inference API to create the endpoint.
212+
* If `search_inference_id` is specified, the inference endpoint will only be used at index time.
213+
* @server_default .elser-2-elasticsearch
214+
*/
215+
inference_id?: Id
216+
/**
217+
* Inference endpoint that will be used to generate embeddings at query time.
218+
* You can update this parameter by using the Update mapping API. Use the Create inference API to create the endpoint.
219+
* If not specified, the inference endpoint defined by inference_id will be used at both index and query time.
220+
*/
221+
search_inference_id?: Id
210222
}
211223

212224
export class SearchAsYouTypeProperty extends CorePropertyBase {

0 commit comments

Comments
 (0)