Skip to content

Commit c3c2156

Browse files
authored
Add back keep_alive to async_search.submit (#3601)
1 parent c9124c2 commit c3c2156

File tree

7 files changed

+69
-3
lines changed

7 files changed

+69
-3
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
},
3939
"async_search.submit": {
4040
"request": [
41+
"Request: query parameter 'keep_alive' does not exist in the json spec",
4142
"interface definition _types:QueryVectorBuilder - Property text_embedding is a single-variant and must be required"
4243
],
4344
"response": []

output/typescript/types.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import { Duration } from '@_types/Time'
6767
* @doc_tag search
6868
*/
6969
// NOTE: this is a SearchRequest with:
70-
// * 2 added parameters: wait_for_completion_timeout, keep_on_completion
70+
// * 2 added parameters: wait_for_completion_timeout, keep_on_completion and keep_alive
7171
// * 2 removed parameters: scroll, pre_filter_shard_size
7272
export interface Request extends RequestBase {
7373
urls: [
@@ -90,6 +90,12 @@ export interface Request extends RequestBase {
9090
* @server_default 1s
9191
*/
9292
wait_for_completion_timeout?: Duration
93+
/**
94+
* Specifies how long the async search needs to be available.
95+
* Ongoing async searches and any saved search results are deleted after this period.
96+
* @server_default 5d
97+
*/
98+
keep_alive?: Duration
9399
/**
94100
* If `true`, results are stored for later retrieval when the search completes within the `wait_for_completion_timeout`.
95101
* @server_default false

0 commit comments

Comments
 (0)