Skip to content

Commit 9da2aac

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

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
@@ -2,6 +2,7 @@
22
"endpointErrors": {
33
"async_search.submit": {
44
"request": [
5+
"Request: query parameter 'keep_alive' does not exist in the json spec",
56
"Request: query parameter 'min_compatible_shard_node' does not exist in the json spec",
67
"interface definition _types:QueryVectorBuilder - Property text_embedding is a single-variant and must be required"
78
],

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
urls: [
@@ -91,6 +91,12 @@ export interface Request extends RequestBase {
9191
* @server_default 1s
9292
*/
9393
wait_for_completion_timeout?: Duration
94+
/**
95+
* Specifies how long the async search needs to be available.
96+
* Ongoing async searches and any saved search results are deleted after this period.
97+
* @server_default 5d
98+
*/
99+
keep_alive?: Duration
94100
/**
95101
* If `true`, results are stored for later retrieval when the search completes within the `wait_for_completion_timeout`.
96102
* @server_default false

0 commit comments

Comments
 (0)