Skip to content

Commit 9eddbdf

Browse files
Update rest-api-spec (#4977)
Co-authored-by: pquentin <[email protected]>
1 parent f9d8102 commit 9eddbdf

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

output/schema/validation-errors.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
"endpointErrors": {
33
"msearch": {
44
"request": [
5-
"Request: query parameter 'allow_no_indices' does not exist in the json spec",
6-
"Request: query parameter 'expand_wildcards' does not exist in the json spec",
7-
"Request: query parameter 'ignore_throttled' does not exist in the json spec",
8-
"Request: query parameter 'ignore_unavailable' does not exist in the json spec",
9-
"Request: query parameter 'include_named_queries_score' does not exist in the json spec",
10-
"Request: query parameter 'routing' does not exist in the json spec"
5+
"Request: missing json spec query parameter 'index'"
116
],
127
"response": []
138
}

specification/_json_spec/msearch.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,38 @@
6060
"type": "boolean",
6161
"description": "Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution",
6262
"default": "true"
63+
},
64+
"index": {
65+
"type": "list",
66+
"description": "A comma-separated list of index names to use as default"
67+
},
68+
"ignore_unavailable": {
69+
"type": "boolean",
70+
"description": "Whether specified concrete indices should be ignored when unavailable (missing or closed)"
71+
},
72+
"ignore_throttled": {
73+
"type": "boolean",
74+
"description": "Whether specified concrete, expanded or aliased indices should be ignored when throttled",
75+
"deprecated": true
76+
},
77+
"allow_no_indices": {
78+
"type": "boolean",
79+
"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)"
80+
},
81+
"expand_wildcards": {
82+
"type": "enum",
83+
"options": ["open", "closed", "hidden", "none", "all"],
84+
"default": "open",
85+
"description": "Whether to expand wildcard expression to concrete indices that are open, closed or both."
86+
},
87+
"routing": {
88+
"type": "list",
89+
"description": "A comma-separated list of specific routing values"
90+
},
91+
"include_named_queries_score": {
92+
"type": "boolean",
93+
"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)",
94+
"default": false
6395
}
6496
},
6597
"body": {

0 commit comments

Comments
 (0)