Skip to content

Commit 8365c5b

Browse files
authored
[8.x] Fix async_search query parameter validation (#3167) (#3191)
1 parent 2dd8fda commit 8365c5b

File tree

9 files changed

+72
-71
lines changed

9 files changed

+72
-71
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 13 additions & 15 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: 10 additions & 15 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 & 16 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: 17 additions & 14 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: 0 additions & 7 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 & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

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

specification/async_search/status/AsyncSearchStatusRequest.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import { RequestBase } from '@_types/Base'
2121
import { Id } from '@_types/common'
22+
import { Duration } from '@_types/Time'
2223

2324
/**
2425
* Get the async search status.
@@ -36,4 +37,12 @@ export interface Request extends RequestBase {
3637
/** A unique identifier for the async search. */
3738
id: Id
3839
}
40+
query_parameters: {
41+
/**
42+
* Specifies how long the async search needs to be available.
43+
* Ongoing async searches and any saved search results are deleted after this period.
44+
* @server_default 5d
45+
*/
46+
keep_alive?: Duration
47+
}
3948
}

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ import { Duration } from '@_types/Time'
6767
* @doc_id async-search
6868
* @doc_tag search
6969
*/
70-
// NOTE: this is a SearchRequest with 3 added parameters: wait_for_completion_timeout, keep_on_completion and keep_alive
70+
// NOTE: this is a SearchRequest with:
71+
// * 3 added parameters: wait_for_completion_timeout, keep_on_completion and keep_alive
72+
// * 1 removed parameters: scroll
7173
export interface Request extends RequestBase {
7274
path_parts: {
7375
index?: Indices
@@ -124,7 +126,6 @@ export interface Request extends RequestBase {
124126
/** @server_default true */
125127
request_cache?: boolean
126128
routing?: Routing
127-
scroll?: Duration
128129
search_type?: SearchType
129130
stats?: string[]
130131
stored_fields?: Fields

0 commit comments

Comments
 (0)