Skip to content

Commit

Permalink
Remove two rejected parameters from async_search.submit
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Dec 2, 2024
1 parent 1c3d8e2 commit a3e09d1
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 135 deletions.
32 changes: 0 additions & 32 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 0 additions & 32 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 1 addition & 27 deletions output/schema/schema-serverless.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 1 addition & 27 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions output/schema/validation-errors.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 2 additions & 13 deletions specification/async_search/submit/AsyncSearchSubmitRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ import { Duration } from '@_types/Time'
* @doc_tag search
*/
// NOTE: this is a SearchRequest with:
// * 3 added parameters: wait_for_completion_timeout, keep_on_completion and keep_alive
// * 1 removed parameters: scroll
// * 2 added parameters: wait_for_completion_timeout, keep_on_completion
// * 2 removed parameters: scroll, pre_filter_shard_size
export interface Request extends RequestBase {
path_parts: {
index?: Indices
Expand All @@ -86,12 +86,6 @@ export interface Request extends RequestBase {
* @server_default false
*/
keep_on_completion?: boolean
/**
* Specifies how long the async search needs to be available.
* Ongoing async searches and any saved search results are deleted after this period.
* @server_default 5d
*/
keep_alive?: Duration
allow_no_indices?: boolean
allow_partial_search_results?: boolean
analyzer?: string
Expand All @@ -118,11 +112,6 @@ export interface Request extends RequestBase {
max_concurrent_shard_requests?: long
min_compatible_shard_node?: VersionString
preference?: string
/**
* 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.
* @server_default 1
*/
pre_filter_shard_size?: long
/** @server_default true */
request_cache?: boolean
routing?: Routing
Expand Down

0 comments on commit a3e09d1

Please sign in to comment.