Skip to content

Commit e5a63d5

Browse files
Add search_inference_id property (#3901) (#3946)
* feat: add search_inference_id property * fix: run make * Add descriptions for parameters * Mark inference_id as optional * Add inference_id server default --------- Co-authored-by: Quentin Pradet <[email protected]> (cherry picked from commit e4cedee) Co-authored-by: Sergey Tihon <[email protected]>
1 parent 3b7ee0d commit e5a63d5

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
@@ -210,7 +210,19 @@ export class SparseVectorProperty extends PropertyBase {
210210
export class SemanticTextProperty {
211211
type: 'semantic_text'
212212
meta?: Dictionary<string, string>
213-
inference_id: Id
213+
/**
214+
* Inference endpoint that will be used to generate embeddings for the field.
215+
* This parameter cannot be updated. Use the Create inference API to create the endpoint.
216+
* If `search_inference_id` is specified, the inference endpoint will only be used at index time.
217+
* @server_default .elser-2-elasticsearch
218+
*/
219+
inference_id?: Id
220+
/**
221+
* Inference endpoint that will be used to generate embeddings at query time.
222+
* You can update this parameter by using the Update mapping API. Use the Create inference API to create the endpoint.
223+
* If not specified, the inference endpoint defined by inference_id will be used at both index and query time.
224+
*/
225+
search_inference_id?: Id
214226
}
215227

216228
export class SearchAsYouTypeProperty extends CorePropertyBase {

0 commit comments

Comments
 (0)