Skip to content

Commit 55eca54

Browse files
committed
Added RRF retriever YAML test
1 parent 14aaa9e commit 55eca54

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

x-pack/plugin/rank-rrf/src/yamlRestTest/resources/rest-api-spec/test/rrf/310_rrf_retriever_simplified.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,18 @@ setup:
359359

360360
- contains: { error.root_cause.0.reason: "[rrf] [query] cannot be empty" }
361361

362+
- do:
363+
catch: bad_request
364+
search:
365+
index: test-index
366+
body:
367+
retriever:
368+
rrf:
369+
fields: [ ]
370+
query: "foo"
371+
372+
- contains: { error.root_cause.0.reason: "[rrf] [fields] cannot be empty" }
373+
362374
- do:
363375
catch: bad_request
364376
search:

0 commit comments

Comments
 (0)