Skip to content

Commit 5b39194

Browse files
Update rest-api-spec 8.x (#3201)
* Update rest-api-spec * Remove two rejected parameters from async_search.submit --------- Co-authored-by: pquentin <[email protected]> Co-authored-by: Quentin Pradet <[email protected]>
1 parent 8365c5b commit 5b39194

File tree

7 files changed

+4
-143
lines changed

7 files changed

+4
-143
lines changed

output/openapi/elasticsearch-openapi.json

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

specification/_json_spec/async_search.submit.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@
3939
"description": "Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false)",
4040
"default": false
4141
},
42-
"keep_alive": {
43-
"type": "time",
44-
"description": "Update the time interval in which the results (partial or final) for this search will be available",
45-
"default": "5d"
46-
},
4742
"batched_reduce_size": {
4843
"type": "number",
4944
"description": "The number of shard results that should be reduced at once on the coordinating node. This value should be used as the granularity at which progress results will be made available.",
@@ -118,11 +113,6 @@
118113
"type": "string",
119114
"description": "Specify the node or shard the operation should be performed on (default: random)"
120115
},
121-
"pre_filter_shard_size": {
122-
"type": "number",
123-
"default": 1,
124-
"description": "Cannot be changed: this is to enforce the execution of a pre-filter roundtrip to retrieve statistics from each shard so that the ones that surely don’t hold any document matching the query get skipped."
125-
},
126116
"rest_total_hits_as_int": {
127117
"type": "boolean",
128118
"description": "Indicates whether hits.total should be rendered as an integer or an object in the rest search response",

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ import { Duration } from '@_types/Time'
6868
* @doc_tag search
6969
*/
7070
// 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
71+
// * 2 added parameters: wait_for_completion_timeout, keep_on_completion
72+
// * 2 removed parameters: scroll, pre_filter_shard_size
7373
export interface Request extends RequestBase {
7474
path_parts: {
7575
index?: Indices
@@ -86,12 +86,6 @@ export interface Request extends RequestBase {
8686
* @server_default false
8787
*/
8888
keep_on_completion?: boolean
89-
/**
90-
* Specifies how long the async search needs to be available.
91-
* Ongoing async searches and any saved search results are deleted after this period.
92-
* @server_default 5d
93-
*/
94-
keep_alive?: Duration
9589
allow_no_indices?: boolean
9690
allow_partial_search_results?: boolean
9791
analyzer?: string
@@ -118,11 +112,6 @@ export interface Request extends RequestBase {
118112
max_concurrent_shard_requests?: long
119113
min_compatible_shard_node?: VersionString
120114
preference?: string
121-
/**
122-
* The default value cannot be changed, which enforces the execution of a pre-filter roundtrip to retrieve statistics from each shard so that the ones that surely don’t hold any document matching the query get skipped.
123-
* @server_default 1
124-
*/
125-
pre_filter_shard_size?: long
126115
/** @server_default true */
127116
request_cache?: boolean
128117
routing?: Routing

0 commit comments

Comments
 (0)