Skip to content

Commit 73d6063

Browse files
authored
Fixed RRF YAML REST Test: rrf with pinned retriever as a sub-retriever (#130402)
* fixed failing pinned retriever test * Update docs/changelog/130402.yaml * Delete docs/changelog/130402.yaml * Worked on the PR comments * Fixed the Match_none * space format * space format
1 parent 7ed57c4 commit 73d6063

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
@@ -530,9 +530,6 @@ tests:
530530
- class: org.elasticsearch.index.store.FsDirectoryFactoryTests
531531
method: testPreload
532532
issue: https://github.com/elastic/elasticsearch/issues/129852
533-
- class: org.elasticsearch.xpack.rank.rrf.RRFRankClientYamlTestSuiteIT
534-
method: test {yaml=rrf/950_pinned_interaction/rrf with pinned retriever as a sub-retriever}
535-
issue: https://github.com/elastic/elasticsearch/issues/129845
536533
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
537534
method: test {p0=esql/60_usage/Basic ESQL usage output (telemetry) non-snapshot version}
538535
issue: https://github.com/elastic/elasticsearch/issues/129888

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)