diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 4137ee815f..58efb1d883 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -23817,6 +23817,16 @@ "$ref": "#/components/schemas/_types:ExpandWildcards" }, "style": "form" + }, + { + "in": "query", + "name": "allow_partial_search_results", + "description": "If `false`, creating a point in time request when a shard is missing or unavailable will throw an exception.\nIf `true`, the point in time will contain all the shards that are available at the time of the request.", + "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 c81e5061fa..a00e2e5e50 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -14336,6 +14336,16 @@ "$ref": "#/components/schemas/_types:ExpandWildcards" }, "style": "form" + }, + { + "in": "query", + "name": "allow_partial_search_results", + "description": "If `false`, creating a point in time request when a shard is missing or unavailable will throw an exception.\nIf `true`, the point in time will contain all the shards that are available at the time of the request.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" } ], "requestBody": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index a74bca737c..7ab7e54163 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -34119,9 +34119,22 @@ "namespace": "_types" } } + }, + { + "description": "If `false`, creating a point in time request when a shard is missing or unavailable will throw an exception.\nIf `true`, the point in time will contain all the shards that are available at the time of the request.", + "name": "allow_partial_search_results", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "_global/open_point_in_time/OpenPointInTimeRequest.ts#L25-L81" + "specLocation": "_global/open_point_in_time/OpenPointInTimeRequest.ts#L25-L87" }, { "body": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 70e9536f35..c722ce7568 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -29563,9 +29563,22 @@ "namespace": "_types" } } + }, + { + "description": "If `false`, creating a point in time request when a shard is missing or unavailable will throw an exception.\nIf `true`, the point in time will contain all the shards that are available at the time of the request.", + "name": "allow_partial_search_results", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "_global/open_point_in_time/OpenPointInTimeRequest.ts#L25-L81" + "specLocation": "_global/open_point_in_time/OpenPointInTimeRequest.ts#L25-L87" }, { "kind": "response", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 572d3bcfce..d94f097d5e 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -895,6 +895,7 @@ export interface OpenPointInTimeRequest extends RequestBase { preference?: string routing?: Routing expand_wildcards?: ExpandWildcards + allow_partial_search_results?: boolean body?: { index_filter?: QueryDslQueryContainer } diff --git a/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts b/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts index 8b1da5da5e..cc4b86d567 100644 --- a/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts +++ b/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts @@ -71,6 +71,12 @@ export interface Request extends RequestBase { * @server_default open */ expand_wildcards?: ExpandWildcards + /** + * If `false`, creating a point in time request when a shard is missing or unavailable will throw an exception. + * If `true`, the point in time will contain all the shards that are available at the time of the request. + * @server_default false + */ + allow_partial_search_results?: boolean } body: { /** diff --git a/specification/_json_spec/open_point_in_time.json b/specification/_json_spec/open_point_in_time.json index 34e9f4a4b6..3870c1f95f 100644 --- a/specification/_json_spec/open_point_in_time.json +++ b/specification/_json_spec/open_point_in_time.json @@ -47,6 +47,10 @@ "type": "string", "description": "Specific the time to live for the point in time", "required": true + }, + "allow_partial_search_results": { + "type": "boolean", + "description": "Specify whether to tolerate shards missing when creating the point-in-time, or otherwise throw an exception. (default: false)" } }, "body": {