Skip to content

Commit d5290f1

Browse files
Add index name to search requests (#49175)
We can't guarantee expected request failures if search request is across many indexes, as if expected shards fail, some indexes may return 200. closes #47743
1 parent 7e2e903 commit d5290f1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/20_dense_vector_special_cases.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ setup:
5757
Content-Type: application/json
5858
search:
5959
rest_total_hits_as_int: true
60+
index: test-index
6061
body:
6162
query:
6263
script_score:
@@ -76,6 +77,7 @@ setup:
7677
Content-Type: application/json
7778
search:
7879
rest_total_hits_as_int: true
80+
index: test-index
7981
body:
8082
query:
8183
script_score:
@@ -106,6 +108,7 @@ setup:
106108
catch: bad_request
107109
search:
108110
rest_total_hits_as_int: true
111+
index: test-index
109112
body:
110113
query:
111114
script_score:
@@ -120,6 +123,7 @@ setup:
120123
catch: bad_request
121124
search:
122125
rest_total_hits_as_int: true
126+
index: test-index
123127
body:
124128
query:
125129
script_score:
@@ -156,6 +160,7 @@ setup:
156160
Content-Type: application/json
157161
search:
158162
rest_total_hits_as_int: true
163+
index: test-index
159164
body:
160165
query:
161166
script_score:
@@ -172,6 +177,7 @@ setup:
172177
Content-Type: application/json
173178
search:
174179
rest_total_hits_as_int: true
180+
index: test-index
175181
body:
176182
query:
177183
script_score:
@@ -203,6 +209,7 @@ setup:
203209
headers:
204210
Content-Type: application/json
205211
search:
212+
index: test-index
206213
body:
207214
query:
208215
script_score:

0 commit comments

Comments
 (0)