diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index 826fec1364..73726af55a 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -210,14 +210,6 @@ ], "response": [] }, - "indices.recovery": { - "request": [ - "Request: query parameter 'allow_no_indices' does not exist in the json spec", - "Request: query parameter 'expand_wildcards' does not exist in the json spec", - "Request: query parameter 'ignore_unavailable' does not exist in the json spec" - ], - "response": [] - }, "ingest.delete_geoip_database": { "request": [ "Request: query parameter 'master_timeout' does not exist in the json spec", @@ -254,12 +246,7 @@ }, "msearch": { "request": [ - "Request: query parameter 'allow_no_indices' does not exist in the json spec", - "Request: query parameter 'expand_wildcards' does not exist in the json spec", - "Request: query parameter 'ignore_throttled' does not exist in the json spec", - "Request: query parameter 'ignore_unavailable' does not exist in the json spec", - "Request: query parameter 'include_named_queries_score' does not exist in the json spec", - "Request: query parameter 'routing' does not exist in the json spec" + "Request: missing json spec query parameter 'index'" ], "response": [] } diff --git a/specification/_json_spec/indices.recovery.json b/specification/_json_spec/indices.recovery.json index ada2fcb075..f3a858647c 100644 --- a/specification/_json_spec/indices.recovery.json +++ b/specification/_json_spec/indices.recovery.json @@ -37,6 +37,22 @@ "type": "boolean", "description": "Display only those recoveries that are currently on-going", "default": false + }, + "ignore_unavailable": { + "type": "boolean", + "description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)", + "default": false + }, + "allow_no_indices": { + "type": "boolean", + "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)", + "default": true + }, + "expand_wildcards": { + "type": "enum", + "options": ["open", "closed", "hidden", "none", "all"], + "default": "open", + "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both." } } } diff --git a/specification/_json_spec/msearch.json b/specification/_json_spec/msearch.json index e083dabb31..7ffa546d0c 100644 --- a/specification/_json_spec/msearch.json +++ b/specification/_json_spec/msearch.json @@ -60,6 +60,38 @@ "type": "boolean", "description": "Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution", "default": "true" + }, + "index": { + "type": "list", + "description": "A comma-separated list of index names to use as default" + }, + "ignore_unavailable": { + "type": "boolean", + "description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)" + }, + "ignore_throttled": { + "type": "boolean", + "description": "Whether specified concrete, expanded or aliased indices should be ignored when throttled", + "deprecated": true + }, + "allow_no_indices": { + "type": "boolean", + "description": "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)" + }, + "expand_wildcards": { + "type": "enum", + "options": ["open", "closed", "hidden", "none", "all"], + "default": "open", + "description": "Whether to expand wildcard expression to concrete indices that are open, closed or both." + }, + "routing": { + "type": "list", + "description": "A comma-separated list of specific routing values" + }, + "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)", + "default": false } }, "body": {