diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index bc2d62193a..8009d9b000 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -9553,6 +9553,16 @@ }, "operationId": "esql-async-query", "parameters": [ + { + "in": "query", + "name": "allow_partial_results", + "description": "If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, { "in": "query", "name": "delimiter", @@ -9884,6 +9894,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "allow_partial_results", + "description": "If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" } ], "requestBody": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 81d5ec173e..2285ec1038 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -5514,6 +5514,16 @@ "type": "boolean" }, "style": "form" + }, + { + "in": "query", + "name": "allow_partial_results", + "description": "If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" } ], "requestBody": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index e86437ea46..699d91a079 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -19408,9 +19408,22 @@ "namespace": "_builtins" } } + }, + { + "description": "If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.", + "name": "allow_partial_results", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "esql/query/QueryRequest.ts#L27-L105" + "specLocation": "esql/query/QueryRequest.ts#L27-L110" }, { "body": { diff --git a/output/schema/schema.json b/output/schema/schema.json index cc7812ea7d..7dff6b5f59 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -124343,6 +124343,19 @@ }, "path": [], "query": [ + { + "description": "If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.", + "name": "allow_partial_results", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } + }, { "description": "The character to use between values within a CSV row.\nIt is valid only for the CSV format.", "name": "delimiter", @@ -124420,7 +124433,7 @@ } } ], - "specLocation": "esql/async_query/AsyncQueryRequest.ts#L28-L125" + "specLocation": "esql/async_query/AsyncQueryRequest.ts#L28-L130" }, { "kind": "response", @@ -124842,9 +124855,22 @@ "namespace": "_builtins" } } + }, + { + "description": "If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.", + "name": "allow_partial_results", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "esql/query/QueryRequest.ts#L27-L105" + "specLocation": "esql/query/QueryRequest.ts#L27-L110" }, { "kind": "response", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 2a45e62d4f..7a173a0727 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -10591,6 +10591,7 @@ export type EsqlTableValuesLongDouble = double | double[] export type EsqlTableValuesLongValue = long | long[] export interface EsqlAsyncQueryRequest extends RequestBase { + allow_partial_results?: boolean delimiter?: string drop_null_columns?: boolean format?: EsqlEsqlFormat @@ -10637,6 +10638,7 @@ export interface EsqlQueryRequest extends RequestBase { format?: EsqlEsqlFormat delimiter?: string drop_null_columns?: boolean + allow_partial_results?: boolean body?: { columnar?: boolean filter?: QueryDslQueryContainer diff --git a/specification/_json_spec/esql.async_query.json b/specification/_json_spec/esql.async_query.json index fe6b455181..566bf9075b 100644 --- a/specification/_json_spec/esql.async_query.json +++ b/specification/_json_spec/esql.async_query.json @@ -32,6 +32,11 @@ "type": "boolean", "description": "Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section.", "default": false + }, + "allow_partial_results": { + "type": "boolean", + "description": "If `true`, partial results will be returned if there are shard failures, but\nthe query can continue to execute on other clusters and shards.", + "default": false } }, "body": { diff --git a/specification/_json_spec/esql.query.json b/specification/_json_spec/esql.query.json index 3bb46f0a07..4e1e96fd14 100644 --- a/specification/_json_spec/esql.query.json +++ b/specification/_json_spec/esql.query.json @@ -32,6 +32,11 @@ "type": "boolean", "description": "Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section.", "default": false + }, + "allow_partial_results": { + "type": "boolean", + "description": "If `true`, partial results will be returned if there are shard failures, but\nthe query can continue to execute on other clusters and shards.", + "default": false } }, "body": { diff --git a/specification/_json_spec/indices.get_mapping.json b/specification/_json_spec/indices.get_mapping.json index 394d8efdb5..29f07b2774 100644 --- a/specification/_json_spec/indices.get_mapping.json +++ b/specification/_json_spec/indices.get_mapping.json @@ -44,15 +44,12 @@ }, "master_timeout": { "type": "time", - "description": "Specify timeout for connection to master" + "description": "Timeout for waiting for new cluster state in case it is blocked" }, "local": { "type": "boolean", "description": "Return local information, do not retrieve the state from master node (default: false)", - "deprecated": { - "version": "7.8.0", - "description": "This parameter is a no-op and field mappings are always retrieved locally." - } + "deprecated": true } } } diff --git a/specification/_json_spec/inference.put.openai.json b/specification/_json_spec/inference.put_openai.json similarity index 100% rename from specification/_json_spec/inference.put.openai.json rename to specification/_json_spec/inference.put_openai.json diff --git a/specification/_json_spec/inference.put.watsonx.json b/specification/_json_spec/inference.put_watsonx.json similarity index 100% rename from specification/_json_spec/inference.put.watsonx.json rename to specification/_json_spec/inference.put_watsonx.json diff --git a/specification/esql/async_query/AsyncQueryRequest.ts b/specification/esql/async_query/AsyncQueryRequest.ts index 12eb54b5dc..de0c504d0d 100644 --- a/specification/esql/async_query/AsyncQueryRequest.ts +++ b/specification/esql/async_query/AsyncQueryRequest.ts @@ -38,6 +38,11 @@ import { Duration } from '@_types/Time' */ export interface Request extends RequestBase { query_parameters: { + /** + * If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards. + * @server_default false + */ + allow_partial_results?: boolean /** * The character to use between values within a CSV row. * It is valid only for the CSV format. diff --git a/specification/esql/query/QueryRequest.ts b/specification/esql/query/QueryRequest.ts index bce931aaac..9106776da5 100644 --- a/specification/esql/query/QueryRequest.ts +++ b/specification/esql/query/QueryRequest.ts @@ -55,6 +55,11 @@ export interface Request extends RequestBase { * @server_default false */ drop_null_columns?: boolean + /** + * If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards. + * @server_default false + */ + allow_partial_results?: boolean } /** * Use the `query` element to start a query. Use `time_zone` to specify an execution time zone and `columnar` to format the answer.