Skip to content

[Backport 8.18] Add search_inference_id property #3928

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 24 additions & 10 deletions output/schema/schema-serverless.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 24 additions & 10 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion specification/_types/mapping/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,19 @@ export class SparseVectorProperty extends PropertyBase {
export class SemanticTextProperty {
type: 'semantic_text'
meta?: Dictionary<string, string>
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 {
Expand Down