Skip to content

Commit f7f3efe

Browse files
authored
[Backport 9.0] Fix AsyncQueryResuest - those parameters should be in the body (#4517) (#4568)
* Fix AsyncQueryResuest - those parameters should be in the body (#4517) (cherry picked from commit 0ac4f3b)
1 parent ad94402 commit f7f3efe

File tree

5 files changed

+52
-105
lines changed

5 files changed

+52
-105
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 7 additions & 31 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: 29 additions & 41 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 & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@
3737
],
3838
"response": []
3939
},
40-
"esql.async_query": {
41-
"request": [
42-
"Request: query parameter 'keep_alive' does not exist in the json spec",
43-
"Request: query parameter 'keep_on_completion' does not exist in the json spec",
44-
"Request: query parameter 'wait_for_completion_timeout' does not exist in the json spec"
45-
],
46-
"response": []
47-
},
4840
"get_source": {
4941
"request": [
5042
"Request: query parameter 'stored_fields' does not exist in the json spec"

output/typescript/types.ts

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

specification/esql/async_query/AsyncQueryRequest.ts

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,6 @@ export interface Request extends RequestBase {
5353
* A short version of the Accept header, for example `json` or `yaml`.
5454
*/
5555
format?: EsqlFormat
56-
/**
57-
* The period for which the query and its results are stored in the cluster.
58-
* The default period is five days.
59-
* When this period expires, the query and its results are deleted, even if the query is still ongoing.
60-
* If the `keep_on_completion` parameter is false, Elasticsearch only stores async queries that do not complete within the period set by the `wait_for_completion_timeout` parameter, regardless of this value.
61-
* @server_default 5d
62-
*/
63-
keep_alive?: Duration
64-
/**
65-
* Indicates whether the query and its results are stored in the cluster.
66-
* If false, the query and its results are stored in the cluster only if the request does not complete during the period set by the `wait_for_completion_timeout` parameter.
67-
* @server_default false
68-
*/
69-
keep_on_completion?: boolean
70-
/**
71-
* The period to wait for the request to finish.
72-
* By default, the request waits for 1 second for the query results.
73-
* If the query completes during this period, results are returned
74-
* Otherwise, a query ID is returned that can later be used to retrieve the results.
75-
* @server_default 1s
76-
*/
77-
wait_for_completion_timeout?: Duration
7856
}
7957
/**
8058
* Use the `query` element to start a query. Use `time_zone` to specify an execution time zone and `columnar` to format the answer.
@@ -129,5 +107,19 @@ export interface Request extends RequestBase {
129107
* @server_default 1s
130108
*/
131109
wait_for_completion_timeout?: Duration
110+
/**
111+
* The period for which the query and its results are stored in the cluster.
112+
* The default period is five days.
113+
* When this period expires, the query and its results are deleted, even if the query is still ongoing.
114+
* If the `keep_on_completion` parameter is false, Elasticsearch only stores async queries that do not complete within the period set by the `wait_for_completion_timeout` parameter, regardless of this value.
115+
* @server_default 5d
116+
*/
117+
keep_alive?: Duration
118+
/**
119+
* Indicates whether the query and its results are stored in the cluster.
120+
* If false, the query and its results are stored in the cluster only if the request does not complete during the period set by the `wait_for_completion_timeout` parameter.
121+
* @server_default false
122+
*/
123+
keep_on_completion?: boolean
132124
}
133125
}

0 commit comments

Comments
 (0)