diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 10dfb6dcbc..abf4811af6 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -111596,7 +111596,7 @@ "msearch#max_concurrent_searches": { "in": "query", "name": "max_concurrent_searches", - "description": "Maximum number of concurrent searches the multi search API can execute.", + "description": "Maximum number of concurrent searches the multi search API can execute.\nDefaults to `max(1, (# of data nodes * min(search thread pool size, 10)))`.", "deprecated": false, "schema": { "type": "number" diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 9c3cac079f..af8b4501bb 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -66475,7 +66475,7 @@ "msearch#max_concurrent_searches": { "in": "query", "name": "max_concurrent_searches", - "description": "Maximum number of concurrent searches the multi search API can execute.", + "description": "Maximum number of concurrent searches the multi search API can execute.\nDefaults to `max(1, (# of data nodes * min(search thread pool size, 10)))`.", "deprecated": false, "schema": { "type": "number" diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index a3ba65bdc8..42771495cf 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -12473,7 +12473,7 @@ "type": { "kind": "instance_of", "type": { - "name": "long", + "name": "integer", "namespace": "_types" } } @@ -39376,13 +39376,13 @@ } }, { - "description": "Maximum number of concurrent searches the multi search API can execute.", + "description": "Maximum number of concurrent searches the multi search API can execute.\nDefaults to `max(1, (# of data nodes * min(search thread pool size, 10)))`.", "name": "max_concurrent_searches", "required": false, "type": { "kind": "instance_of", "type": { - "name": "long", + "name": "integer", "namespace": "_types" } } @@ -39395,7 +39395,7 @@ "type": { "kind": "instance_of", "type": { - "name": "long", + "name": "integer", "namespace": "_types" } } @@ -39462,7 +39462,7 @@ } } ], - "specLocation": "_global/msearch/MultiSearchRequest.ts#L25-L135" + "specLocation": "_global/msearch/MultiSearchRequest.ts#L25-L136" }, { "body": { @@ -42820,7 +42820,7 @@ "type": { "kind": "instance_of", "type": { - "name": "long", + "name": "integer", "namespace": "_types" } } diff --git a/output/schema/schema.json b/output/schema/schema.json index a4d1eac18f..87726b4b4e 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -31477,13 +31477,13 @@ } }, { - "description": "Maximum number of concurrent searches the multi search API can execute.", + "description": "Maximum number of concurrent searches the multi search API can execute.\nDefaults to `max(1, (# of data nodes * min(search thread pool size, 10)))`.", "name": "max_concurrent_searches", "required": false, "type": { "kind": "instance_of", "type": { - "name": "long", + "name": "integer", "namespace": "_types" } } @@ -31496,7 +31496,7 @@ "type": { "kind": "instance_of", "type": { - "name": "long", + "name": "integer", "namespace": "_types" } } @@ -31563,7 +31563,7 @@ } } ], - "specLocation": "_global/msearch/MultiSearchRequest.ts#L25-L135" + "specLocation": "_global/msearch/MultiSearchRequest.ts#L25-L136" }, { "kind": "type_alias", @@ -36124,7 +36124,7 @@ "type": { "kind": "instance_of", "type": { - "name": "long", + "name": "integer", "namespace": "_types" } } @@ -93044,7 +93044,7 @@ "type": { "kind": "instance_of", "type": { - "name": "long", + "name": "integer", "namespace": "_types" } } @@ -126494,7 +126494,7 @@ "type": { "kind": "instance_of", "type": { - "name": "long", + "name": "integer", "namespace": "_types" } } @@ -126507,7 +126507,7 @@ "type": { "kind": "instance_of", "type": { - "name": "long", + "name": "integer", "namespace": "_types" } } @@ -127271,7 +127271,7 @@ "type": { "kind": "instance_of", "type": { - "name": "long", + "name": "integer", "namespace": "_types" } } diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 57eae5fb1f..d1bc9b9624 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -788,8 +788,8 @@ export interface MsearchRequest extends RequestBase { ignore_throttled?: boolean ignore_unavailable?: boolean include_named_queries_score?: boolean - max_concurrent_searches?: long - max_concurrent_shard_requests?: long + max_concurrent_searches?: integer + max_concurrent_shard_requests?: integer pre_filter_shard_size?: long rest_total_hits_as_int?: boolean routing?: Routing @@ -1176,7 +1176,7 @@ export interface SearchRequest extends RequestBase { ignore_unavailable?: boolean include_named_queries_score?: boolean lenient?: boolean - max_concurrent_shard_requests?: long + max_concurrent_shard_requests?: integer preference?: string pre_filter_shard_size?: long request_cache?: boolean @@ -6850,7 +6850,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase { ignore_throttled?: boolean ignore_unavailable?: boolean lenient?: boolean - max_concurrent_shard_requests?: long + max_concurrent_shard_requests?: integer preference?: string request_cache?: boolean routing?: Routing @@ -10722,8 +10722,8 @@ export interface FleetMsearchRequest extends RequestBase { expand_wildcards?: ExpandWildcards ignore_throttled?: boolean ignore_unavailable?: boolean - max_concurrent_searches?: long - max_concurrent_shard_requests?: long + max_concurrent_searches?: integer + max_concurrent_shard_requests?: integer pre_filter_shard_size?: long search_type?: SearchType rest_total_hits_as_int?: boolean @@ -10752,7 +10752,7 @@ export interface FleetSearchRequest extends RequestBase { ignore_throttled?: boolean ignore_unavailable?: boolean lenient?: boolean - max_concurrent_shard_requests?: long + max_concurrent_shard_requests?: integer preference?: string pre_filter_shard_size?: long request_cache?: boolean diff --git a/specification/_global/msearch/MultiSearchRequest.ts b/specification/_global/msearch/MultiSearchRequest.ts index 96081977dd..c448fb7181 100644 --- a/specification/_global/msearch/MultiSearchRequest.ts +++ b/specification/_global/msearch/MultiSearchRequest.ts @@ -19,7 +19,7 @@ import { RequestBase } from '@_types/Base' import { ExpandWildcards, Indices, Routing, SearchType } from '@_types/common' -import { long } from '@_types/Numeric' +import { integer, long } from '@_types/Numeric' import { RequestItem } from './types' /** @@ -101,13 +101,14 @@ export interface Request extends RequestBase { include_named_queries_score?: boolean /** * Maximum number of concurrent searches the multi search API can execute. + * Defaults to `max(1, (# of data nodes * min(search thread pool size, 10)))`. */ - max_concurrent_searches?: long + max_concurrent_searches?: integer /** * Maximum number of concurrent shard requests that each sub-search request executes per node. * @server_default 5 */ - max_concurrent_shard_requests?: long + max_concurrent_shard_requests?: integer /** * Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method i.e., if date filters are mandatory to match but the shard bounds and the query are disjoint. */ diff --git a/specification/_global/search/SearchRequest.ts b/specification/_global/search/SearchRequest.ts index 929edf9e55..49f77ea08d 100644 --- a/specification/_global/search/SearchRequest.ts +++ b/specification/_global/search/SearchRequest.ts @@ -195,7 +195,7 @@ export interface Request extends RequestBase { * This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests. * @server_default 5 */ - max_concurrent_shard_requests?: long + max_concurrent_shard_requests?: integer /** * The nodes and shards used for the search. * By default, Elasticsearch selects from eligible nodes and shards using adaptive replica selection, accounting for allocation awareness. diff --git a/specification/async_search/submit/AsyncSearchSubmitRequest.ts b/specification/async_search/submit/AsyncSearchSubmitRequest.ts index 12c0f62097..e57602debc 100644 --- a/specification/async_search/submit/AsyncSearchSubmitRequest.ts +++ b/specification/async_search/submit/AsyncSearchSubmitRequest.ts @@ -124,7 +124,7 @@ export interface Request extends RequestBase { ignore_throttled?: boolean ignore_unavailable?: boolean lenient?: boolean - max_concurrent_shard_requests?: long + max_concurrent_shard_requests?: integer preference?: string /** @server_default true */ request_cache?: boolean diff --git a/specification/fleet/msearch/MultiSearchRequest.ts b/specification/fleet/msearch/MultiSearchRequest.ts index 4ba51f62af..931572dada 100644 --- a/specification/fleet/msearch/MultiSearchRequest.ts +++ b/specification/fleet/msearch/MultiSearchRequest.ts @@ -25,7 +25,7 @@ import { IndexName, SearchType } from '@_types/common' -import { long } from '@_types/Numeric' +import { integer, long } from '@_types/Numeric' import { Checkpoint } from '../_types/Checkpoints' /** @@ -84,12 +84,12 @@ export interface Request extends RequestBase { /** * Maximum number of concurrent searches the multi search API can execute. */ - max_concurrent_searches?: long + max_concurrent_searches?: integer /** * Maximum number of concurrent shard requests that each sub-search request executes per node. * @server_default 5 */ - max_concurrent_shard_requests?: long + max_concurrent_shard_requests?: integer /** * Defines a threshold that enforces a pre-filter roundtrip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter roundtrip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method i.e., if date filters are mandatory to match but the shard bounds and the query are disjoint. */ diff --git a/specification/fleet/search/SearchRequest.ts b/specification/fleet/search/SearchRequest.ts index 714da39edf..63a4a73c73 100644 --- a/specification/fleet/search/SearchRequest.ts +++ b/specification/fleet/search/SearchRequest.ts @@ -88,7 +88,7 @@ export interface Request extends RequestBase { ignore_throttled?: boolean ignore_unavailable?: boolean lenient?: boolean - max_concurrent_shard_requests?: long + max_concurrent_shard_requests?: integer preference?: string pre_filter_shard_size?: long request_cache?: boolean