Skip to content

Commit 21f8a83

Browse files
authored
[9.1] Backporting Fixed RRF YAML REST Test: rrf with pinned retriever as a sub-retriever (#131318)
* Resolved conflicts * Merge conflict resulted in unnecessary files
1 parent 5f1b256 commit 21f8a83

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,6 @@ tests:
486486
- class: org.elasticsearch.qa.verify_version_constants.VerifyVersionConstantsIT
487487
method: testLuceneVersionConstant
488488
issue: https://github.com/elastic/elasticsearch/issues/125638
489-
- class: org.elasticsearch.xpack.rank.rrf.RRFRankClientYamlTestSuiteIT
490-
method: test {yaml=rrf/950_pinned_interaction/rrf with pinned retriever as a sub-retriever}
491-
issue: https://github.com/elastic/elasticsearch/issues/129845
492489
- class: org.elasticsearch.gradle.internal.InternalDistributionBwcSetupPluginFuncTest
493490
method: "builds distribution from branches via archives extractedAssemble [bwcDistVersion: 8.2.1, bwcProject: bugfix, expectedAssembleTaskName:
494491
extractedAssemble, #2]"

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ setup:
8080
-
8181
standard:
8282
query:
83-
match: { text: "document" }
83+
match_none: {}
8484
-
8585
pinned:
8686
ids: ["doc4", "doc5"]
@@ -90,9 +90,6 @@ setup:
9090
match: { text: "document" }
9191

9292
- match: { hits.total.value: 5 }
93-
- match: { hits.hits.0._id: doc1 }
94-
- lt: { hits.hits.0._score: 100.0 }
95-
- match: { hits.hits.1._id: doc4 }
96-
- match: { hits.hits.2._id: doc5 }
97-
93+
- match: { hits.hits.0._id: doc4 }
94+
- match: { hits.hits.1._id: doc5 }
9895

0 commit comments

Comments
 (0)