diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index f1c01ebbe5..22302672fe 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -17018,7 +17018,7 @@ } }, "/_inference/{inference_id}/_update": { - "post": { + "put": { "tags": [ "inference" ], @@ -17042,7 +17042,7 @@ } }, "/_inference/{task_type}/{inference_id}/_update": { - "post": { + "put": { "tags": [ "inference" ], diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 205eb71724..252a32917d 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -18470,7 +18470,7 @@ "description": "If true, returns partial results if there are shard failures. If false, returns an error with no partial results.", "name": "allow_partial_search_results", "required": false, - "serverDefault": false, + "serverDefault": true, "type": { "kind": "instance_of", "type": { @@ -18483,7 +18483,7 @@ "description": "If true, sequence queries will return partial results in case of shard failures. If false, they will return no results at all.\nThis flag has effect only if allow_partial_search_results is true.", "name": "allow_partial_sequence_results", "required": false, - "serverDefault": false, + "serverDefault": true, "type": { "kind": "instance_of", "type": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 820d8e5332..dcf7e66965 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -9396,13 +9396,13 @@ "urls": [ { "methods": [ - "POST" + "PUT" ], "path": "/_inference/{inference_id}/_update" }, { "methods": [ - "POST" + "PUT" ], "path": "/_inference/{task_type}/{inference_id}/_update" } @@ -122277,7 +122277,7 @@ "description": "If true, returns partial results if there are shard failures. If false, returns an error with no partial results.", "name": "allow_partial_search_results", "required": false, - "serverDefault": false, + "serverDefault": true, "type": { "kind": "instance_of", "type": { @@ -122290,7 +122290,7 @@ "description": "If true, sequence queries will return partial results in case of shard failures. If false, they will return no results at all.\nThis flag has effect only if allow_partial_search_results is true.", "name": "allow_partial_sequence_results", "required": false, - "serverDefault": false, + "serverDefault": true, "type": { "kind": "instance_of", "type": { diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index e7090fc68d..551146d60b 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -2,7 +2,6 @@ "endpointErrors": { "async_search.submit": { "request": [ - "Request: query parameter 'keep_alive' does not exist in the json spec", "Request: query parameter 'min_compatible_shard_node' does not exist in the json spec", "interface definition _types:QueryVectorBuilder - Property text_embedding is a single-variant and must be required" ], diff --git a/specification/_json_spec/async_search.submit.json b/specification/_json_spec/async_search.submit.json index 2d5ad25831..5bff2b1606 100644 --- a/specification/_json_spec/async_search.submit.json +++ b/specification/_json_spec/async_search.submit.json @@ -39,6 +39,11 @@ "description": "Control whether the response should be stored in the cluster if it completed within the provided [wait_for_completion] time (default: false)", "default": false }, + "keep_alive": { + "type": "time", + "description": "Update the time interval in which the results (partial or final) for this search will be available", + "default": "5d" + }, "batched_reduce_size": { "type": "number", "description": "The number of shard results that should be reduced at once on the coordinating node. This value should be used as the granularity at which progress results will be made available.", diff --git a/specification/_json_spec/eql.search.json b/specification/_json_spec/eql.search.json index 3818508320..1d9831a6e8 100644 --- a/specification/_json_spec/eql.search.json +++ b/specification/_json_spec/eql.search.json @@ -42,7 +42,7 @@ "allow_partial_search_results": { "type": "boolean", "description": "Control whether the query should keep running in case of shard failures, and return partial results", - "default": false + "default": true }, "allow_partial_sequence_results": { "type": "boolean", diff --git a/specification/_json_spec/indices.cancel_migrate_reindex.json b/specification/_json_spec/indices.cancel_migrate_reindex.json index 9c333c2736..26d8881201 100644 --- a/specification/_json_spec/indices.cancel_migrate_reindex.json +++ b/specification/_json_spec/indices.cancel_migrate_reindex.json @@ -1,7 +1,7 @@ { "indices.cancel_migrate_reindex": { "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex-cancel-api.html", "description": "This API returns the status of a migration reindex attempt for a data stream or index" }, "stability": "experimental", diff --git a/specification/_json_spec/indices.create_from.json b/specification/_json_spec/indices.create_from.json index 76fb06d072..342f560d1c 100644 --- a/specification/_json_spec/indices.create_from.json +++ b/specification/_json_spec/indices.create_from.json @@ -1,7 +1,7 @@ { "indices.create_from": { "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index-from-source.html", "description": "This API creates a destination from a source index. It copies the mappings and settings from the source index while allowing request settings and mappings to override the source values." }, "stability": "experimental", diff --git a/specification/_json_spec/indices.get_migrate_reindex_status.json b/specification/_json_spec/indices.get_migrate_reindex_status.json index 309d44f137..7e027dec38 100644 --- a/specification/_json_spec/indices.get_migrate_reindex_status.json +++ b/specification/_json_spec/indices.get_migrate_reindex_status.json @@ -1,7 +1,7 @@ { "indices.get_migrate_reindex_status": { "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex-status-api.html", "description": "This API returns the status of a migration reindex attempt for a data stream or index" }, "stability": "experimental", diff --git a/specification/_json_spec/indices.migrate_reindex.json b/specification/_json_spec/indices.migrate_reindex.json index 1f69103497..d1689f7eb9 100644 --- a/specification/_json_spec/indices.migrate_reindex.json +++ b/specification/_json_spec/indices.migrate_reindex.json @@ -1,7 +1,7 @@ { "indices.migrate_reindex": { "documentation": { - "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex.html", + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-stream-reindex-api.html", "description": "This API reindexes all legacy backing indices for a data stream. It does this in a persistent task. The persistent task id is returned immediately, and the reindexing work is completed in that task" }, "stability": "experimental", diff --git a/specification/_json_spec/inference.update.json b/specification/_json_spec/inference.update.json index 6c458ce080..133354e3ec 100644 --- a/specification/_json_spec/inference.update.json +++ b/specification/_json_spec/inference.update.json @@ -14,7 +14,7 @@ "paths": [ { "path": "/_inference/{inference_id}/_update", - "methods": ["POST"], + "methods": ["PUT"], "parts": { "inference_id": { "type": "string", @@ -24,7 +24,7 @@ }, { "path": "/_inference/{task_type}/{inference_id}/_update", - "methods": ["POST"], + "methods": ["PUT"], "parts": { "task_type": { "type": "string", diff --git a/specification/eql/search/EqlSearchRequest.ts b/specification/eql/search/EqlSearchRequest.ts index 3240d27584..a954d76463 100644 --- a/specification/eql/search/EqlSearchRequest.ts +++ b/specification/eql/search/EqlSearchRequest.ts @@ -52,13 +52,13 @@ export interface Request extends RequestBase { allow_no_indices?: boolean /** * If true, returns partial results if there are shard failures. If false, returns an error with no partial results. - * @server_default false + * @server_default true */ allow_partial_search_results?: boolean /** * If true, sequence queries will return partial results in case of shard failures. If false, they will return no results at all. * This flag has effect only if allow_partial_search_results is true. - * @server_default false + * @server_default true */ allow_partial_sequence_results?: boolean /** diff --git a/specification/inference/update/UpdateInferenceRequest.ts b/specification/inference/update/UpdateInferenceRequest.ts index b1ea359fe6..ef216c9207 100644 --- a/specification/inference/update/UpdateInferenceRequest.ts +++ b/specification/inference/update/UpdateInferenceRequest.ts @@ -39,11 +39,11 @@ export interface Request extends RequestBase { urls: [ { path: '/_inference/{inference_id}/_update' - methods: ['POST'] + methods: ['PUT'] }, { path: '/_inference/{task_type}/{inference_id}/_update' - methods: ['POST'] + methods: ['PUT'] } ] path_parts: {