diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index da0132cf77..5869044c37 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -208,9 +208,6 @@ { "$ref": "#/components/parameters/async_search.submit#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/async_search.submit#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/async_search.submit#preference" }, @@ -370,9 +367,6 @@ { "$ref": "#/components/parameters/async_search.submit#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/async_search.submit#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/async_search.submit#preference" }, @@ -8901,9 +8895,6 @@ { "$ref": "#/components/parameters/fleet.search#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/fleet.search#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/fleet.search#preference" }, @@ -9055,9 +9046,6 @@ { "$ref": "#/components/parameters/fleet.search#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/fleet.search#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/fleet.search#preference" }, @@ -25337,9 +25325,6 @@ { "$ref": "#/components/parameters/search#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/search#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/search#preference" }, @@ -25490,9 +25475,6 @@ { "$ref": "#/components/parameters/search#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/search#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/search#preference" }, @@ -25648,9 +25630,6 @@ { "$ref": "#/components/parameters/search#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/search#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/search#preference" }, @@ -25804,9 +25783,6 @@ { "$ref": "#/components/parameters/search#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/search#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/search#preference" }, @@ -41225,9 +41201,6 @@ "none" ] }, - "_types:VersionString": { - "type": "string" - }, "_types:SearchType": { "type": "string", "enum": [ @@ -50410,6 +50383,9 @@ } } }, + "_types:VersionString": { + "type": "string" + }, "cat._types:CatDatafeedColumns": { "oneOf": [ { @@ -92517,15 +92493,6 @@ }, "style": "form" }, - "async_search.submit#min_compatible_shard_node": { - "in": "query", - "name": "min_compatible_shard_node", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:VersionString" - }, - "style": "form" - }, "async_search.submit#preference": { "in": "query", "name": "preference", @@ -94825,15 +94792,6 @@ }, "style": "form" }, - "fleet.search#min_compatible_shard_node": { - "in": "query", - "name": "min_compatible_shard_node", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:VersionString" - }, - "style": "form" - }, "fleet.search#preference": { "in": "query", "name": "preference", @@ -99671,16 +99629,6 @@ }, "style": "form" }, - "search#min_compatible_shard_node": { - "in": "query", - "name": "min_compatible_shard_node", - "description": "The minimum version of the node that can handle the request\nAny handling node with a lower version will fail the request.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:VersionString" - }, - "style": "form" - }, "search#preference": { "in": "query", "name": "preference", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 54609ae2db..095cd05cd9 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -208,9 +208,6 @@ { "$ref": "#/components/parameters/async_search.submit#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/async_search.submit#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/async_search.submit#preference" }, @@ -370,9 +367,6 @@ { "$ref": "#/components/parameters/async_search.submit#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/async_search.submit#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/async_search.submit#preference" }, @@ -15393,9 +15387,6 @@ { "$ref": "#/components/parameters/search#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/search#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/search#preference" }, @@ -15543,9 +15534,6 @@ { "$ref": "#/components/parameters/search#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/search#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/search#preference" }, @@ -15698,9 +15686,6 @@ { "$ref": "#/components/parameters/search#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/search#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/search#preference" }, @@ -15851,9 +15836,6 @@ { "$ref": "#/components/parameters/search#max_concurrent_shard_requests" }, - { - "$ref": "#/components/parameters/search#min_compatible_shard_node" - }, { "$ref": "#/components/parameters/search#preference" }, @@ -25079,9 +25061,6 @@ "none" ] }, - "_types:VersionString": { - "type": "string" - }, "_types:SearchType": { "type": "string", "enum": [ @@ -33811,6 +33790,9 @@ } } }, + "_types:VersionString": { + "type": "string" + }, "cat._types:CatDatafeedColumns": { "oneOf": [ { @@ -56798,15 +56780,6 @@ }, "style": "form" }, - "async_search.submit#min_compatible_shard_node": { - "in": "query", - "name": "min_compatible_shard_node", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:VersionString" - }, - "style": "form" - }, "async_search.submit#preference": { "in": "query", "name": "preference", @@ -60851,16 +60824,6 @@ }, "style": "form" }, - "search#min_compatible_shard_node": { - "in": "query", - "name": "min_compatible_shard_node", - "description": "The minimum version of the node that can handle the request\nAny handling node with a lower version will fail the request.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:VersionString" - }, - "style": "form" - }, "search#preference": { "in": "query", "name": "preference", diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index a169dfd438..eed5340864 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -10879,17 +10879,6 @@ } } }, - { - "name": "min_compatible_shard_node", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "VersionString", - "namespace": "_types" - } - } - }, { "description": "Specify the node or shard the operation should be performed on (default: random)", "name": "preference", @@ -11233,7 +11222,7 @@ } } ], - "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L55-L290" + "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L55-L289" }, { "body": { @@ -36652,18 +36641,6 @@ } } }, - { - "description": "The minimum version of the node that can handle the request\nAny handling node with a lower version will fail the request.", - "name": "min_compatible_shard_node", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "VersionString", - "namespace": "_types" - } - } - }, { "description": "Nodes and shards used for the search.\nBy default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. Valid values are:\n`_only_local` to run the search only on shards on the local node;\n`_local` to, if possible, run the search on shards on the local node, or if not, select shards using the default method;\n`_only_nodes:,` to run the search on only the specified nodes IDs, where, if suitable shards exist on more than one selected node, use shards on those nodes using the default method, or if none of the specified nodes are available, select shards from any available node using the default method;\n`_prefer_nodes:,` to if possible, run the search on the specified nodes IDs, or if not, select shards using the default method;\n`_shards:,` to run the search only on the specified shards;\n`` (any string that does not start with `_`) to route searches with the same `` to the same shards in the same order.", "name": "preference", @@ -37021,7 +36998,7 @@ } } ], - "specLocation": "_global/search/SearchRequest.ts#L54-L531" + "specLocation": "_global/search/SearchRequest.ts#L54-L526" }, { "body": { diff --git a/output/schema/schema.json b/output/schema/schema.json index c19dea2d46..e2c5c382b9 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -32741,18 +32741,6 @@ } } }, - { - "description": "The minimum version of the node that can handle the request\nAny handling node with a lower version will fail the request.", - "name": "min_compatible_shard_node", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "VersionString", - "namespace": "_types" - } - } - }, { "description": "Nodes and shards used for the search.\nBy default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. Valid values are:\n`_only_local` to run the search only on shards on the local node;\n`_local` to, if possible, run the search on shards on the local node, or if not, select shards using the default method;\n`_only_nodes:,` to run the search on only the specified nodes IDs, where, if suitable shards exist on more than one selected node, use shards on those nodes using the default method, or if none of the specified nodes are available, select shards from any available node using the default method;\n`_prefer_nodes:,` to if possible, run the search on the specified nodes IDs, or if not, select shards using the default method;\n`_shards:,` to run the search only on the specified shards;\n`` (any string that does not start with `_`) to route searches with the same `` to the same shards in the same order.", "name": "preference", @@ -33129,7 +33117,7 @@ } } ], - "specLocation": "_global/search/SearchRequest.ts#L54-L531" + "specLocation": "_global/search/SearchRequest.ts#L54-L526" }, { "kind": "response", @@ -88267,17 +88255,6 @@ } } }, - { - "name": "min_compatible_shard_node", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "VersionString", - "namespace": "_types" - } - } - }, { "description": "Specify the node or shard the operation should be performed on (default: random)", "name": "preference", @@ -88621,7 +88598,7 @@ } } ], - "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L55-L290" + "specLocation": "async_search/submit/AsyncSearchSubmitRequest.ts#L55-L289" }, { "kind": "response", @@ -119541,17 +119518,6 @@ } } }, - { - "name": "min_compatible_shard_node", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "VersionString", - "namespace": "_types" - } - } - }, { "name": "preference", "required": false, @@ -119898,7 +119864,7 @@ } } ], - "specLocation": "fleet/search/SearchRequest.ts#L55-L260" + "specLocation": "fleet/search/SearchRequest.ts#L55-L259" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 7582be8d50..6533a07c38 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -58,7 +58,6 @@ "async_search.submit": { "request": [ "Request: query parameter 'ccs_minimize_roundtrips' does not exist in the json spec", - "Request: query parameter 'min_compatible_shard_node' does not exist in the json spec", "Request: query parameter 'pre_filter_shard_size' does not exist in the json spec", "Request: query parameter 'scroll' does not exist in the json spec", "Request: query parameter 'rest_total_hits_as_int' does not exist in the json spec", @@ -709,7 +708,6 @@ "Request: query parameter 'ignore_unavailable' does not exist in the json spec", "Request: query parameter 'lenient' does not exist in the json spec", "Request: query parameter 'max_concurrent_shard_requests' does not exist in the json spec", - "Request: query parameter 'min_compatible_shard_node' does not exist in the json spec", "Request: query parameter 'preference' does not exist in the json spec", "Request: query parameter 'pre_filter_shard_size' does not exist in the json spec", "Request: query parameter 'request_cache' does not exist in the json spec", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 71da122a94..cfc8b8edba 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -1185,7 +1185,6 @@ export interface SearchRequest extends RequestBase { include_named_queries_score?: boolean lenient?: boolean max_concurrent_shard_requests?: long - min_compatible_shard_node?: VersionString preference?: string pre_filter_shard_size?: long request_cache?: boolean @@ -6767,7 +6766,6 @@ export interface AsyncSearchSubmitRequest extends RequestBase { ignore_unavailable?: boolean lenient?: boolean max_concurrent_shard_requests?: long - min_compatible_shard_node?: VersionString preference?: string pre_filter_shard_size?: long request_cache?: boolean @@ -10468,7 +10466,6 @@ export interface FleetSearchRequest extends RequestBase { ignore_unavailable?: boolean lenient?: boolean max_concurrent_shard_requests?: long - min_compatible_shard_node?: VersionString preference?: string pre_filter_shard_size?: long request_cache?: boolean diff --git a/specification/_global/search/SearchRequest.ts b/specification/_global/search/SearchRequest.ts index fe97005394..cce1fa3bfc 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -30,8 +30,7 @@ import { Indices, Routing, SearchType, - SuggestMode, - VersionString + SuggestMode } from '@_types/common' import { KnnSearch } from '@_types/Knn' import { RuntimeFields } from '@_types/mapping/RuntimeFields' @@ -165,11 +164,6 @@ export interface Request extends RequestBase { * @server_default 5 */ max_concurrent_shard_requests?: long - /** - * The minimum version of the node that can handle the request - * Any handling node with a lower version will fail the request. - */ - min_compatible_shard_node?: VersionString /** * Nodes and shards used for the search. * By default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. Valid values are: diff --git a/specification/_json_spec/search.json b/specification/_json_spec/search.json index fb9a648f2a..42125fa044 100644 --- a/specification/_json_spec/search.json +++ b/specification/_json_spec/search.json @@ -215,10 +215,6 @@ "description": "Indicates whether hits.total should be rendered as an integer or an object in the rest search response", "default": false }, - "min_compatible_shard_node": { - "type": "string", - "description": "The minimum compatible version that all shards involved in search should have for this request to be successful" - }, "include_named_queries_score": { "type": "boolean", "description": "Indicates whether hit.matched_queries should be rendered as a map that includes the name of the matched query associated with its score (true) or as an array containing the name of the matched queries (false)", diff --git a/specification/async_search/submit/AsyncSearchSubmitRequest.ts b/specification/async_search/submit/AsyncSearchSubmitRequest.ts index 1bc571dc43..3702595468 100644 --- a/specification/async_search/submit/AsyncSearchSubmitRequest.ts +++ b/specification/async_search/submit/AsyncSearchSubmitRequest.ts @@ -39,8 +39,7 @@ import { Indices, Routing, SearchType, - SuggestMode, - VersionString + SuggestMode } from '@_types/common' import { KnnSearch } from '@_types/Knn' import { RuntimeFields } from '@_types/mapping/RuntimeFields' @@ -114,7 +113,6 @@ export interface Request extends RequestBase { ignore_unavailable?: boolean lenient?: boolean 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. diff --git a/specification/fleet/search/SearchRequest.ts b/specification/fleet/search/SearchRequest.ts index cbdb4c3071..36f0159763 100644 --- a/specification/fleet/search/SearchRequest.ts +++ b/specification/fleet/search/SearchRequest.ts @@ -39,8 +39,7 @@ import { IndexName, Routing, SearchType, - SuggestMode, - VersionString + SuggestMode } from '@_types/common' import { RuntimeFields } from '@_types/mapping/RuntimeFields' import { double, integer, long } from '@_types/Numeric' @@ -82,7 +81,6 @@ export interface Request extends RequestBase { ignore_unavailable?: boolean lenient?: boolean max_concurrent_shard_requests?: long - min_compatible_shard_node?: VersionString preference?: string pre_filter_shard_size?: long request_cache?: boolean