Skip to content

Commit bda2359

Browse files
committed
Add back keep_alive to async_search.submit (#3601)
(cherry picked from commit c3c2156) # Conflicts: # output/schema/schema-serverless.json # output/schema/schema.json # output/schema/validation-errors.json
1 parent 9cb5929 commit bda2359

File tree

7 files changed

+83
-1
lines changed

7 files changed

+83
-1
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: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 19 additions & 0 deletions
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: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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
@@ -68,7 +68,7 @@ import { Duration } from '@_types/Time'
6868
* @doc_tag search
6969
*/
7070
// NOTE: this is a SearchRequest with:
71-
// * 2 added parameters: wait_for_completion_timeout, keep_on_completion
71+
// * 2 added parameters: wait_for_completion_timeout, keep_on_completion and keep_alive
7272
// * 2 removed parameters: scroll, pre_filter_shard_size
7373
export interface Request extends RequestBase {
7474
path_parts: {
@@ -81,6 +81,12 @@ export interface Request extends RequestBase {
8181
* @server_default 1s
8282
*/
8383
wait_for_completion_timeout?: Duration
84+
/**
85+
* Specifies how long the async search needs to be available.
86+
* Ongoing async searches and any saved search results are deleted after this period.
87+
* @server_default 5d
88+
*/
89+
keep_alive?: Duration
8490
/**
8591
* If `true`, results are stored for later retrieval when the search completes within the `wait_for_completion_timeout`.
8692
* @server_default false

0 commit comments

Comments
 (0)