Skip to content

Commit 2c8085d

Browse files
committed
Added index alias test
1 parent 51eeaaf commit 2c8085d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

x-pack/plugin/rank-rrf/src/yamlRestTest/resources/rest-api-spec/test/linear/20_linear_retriever_simplified.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,27 @@ setup:
352352

353353
- match: { error.root_cause.0.reason: "[linear] does not support the simplified query format when querying multiple indices" }
354354

355+
- do:
356+
indices.put_alias:
357+
index: test-index
358+
name: test-alias
359+
- do:
360+
indices.put_alias:
361+
index: test-index-2
362+
name: test-alias
363+
364+
- do:
365+
catch: bad_request
366+
search:
367+
index: test-alias
368+
body:
369+
retriever:
370+
linear:
371+
query: "match"
372+
normalizer: "minmax"
373+
374+
- match: { error.root_cause.0.reason: "[linear] does not support the simplified query format when querying multiple indices" }
375+
355376
---
356377
"Wildcard field patterns that do not resolve to any field are handled gracefully":
357378
- do:

0 commit comments

Comments
 (0)