Skip to content

Commit 730faa8

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 213d2da commit 730faa8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ setup:
5555
Content-Type: application/json
5656
search:
5757
rest_total_hits_as_int: true
58+
index: test-index
5859
body:
5960
query:
6061
script_score:
@@ -74,6 +75,7 @@ setup:
7475
Content-Type: application/json
7576
search:
7677
rest_total_hits_as_int: true
78+
index: test-index
7779
body:
7880
query:
7981
script_score:
@@ -104,6 +106,7 @@ setup:
104106
catch: bad_request
105107
search:
106108
rest_total_hits_as_int: true
109+
index: test-index
107110
body:
108111
query:
109112
script_score:
@@ -118,6 +121,7 @@ setup:
118121
catch: bad_request
119122
search:
120123
rest_total_hits_as_int: true
124+
index: test-index
121125
body:
122126
query:
123127
script_score:
@@ -154,6 +158,7 @@ setup:
154158
Content-Type: application/json
155159
search:
156160
rest_total_hits_as_int: true
161+
index: test-index
157162
body:
158163
query:
159164
script_score:
@@ -170,6 +175,7 @@ setup:
170175
Content-Type: application/json
171176
search:
172177
rest_total_hits_as_int: true
178+
index: test-index
173179
body:
174180
query:
175181
script_score:

0 commit comments

Comments
 (0)