Skip to content

Commit 6765909

Browse files
committed
fix test
1 parent af37320 commit 6765909

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ setup:
22
- skip:
33
features:
44
- close_to
5+
- contains
56

67
- requires:
78
test_runner_features: "close_to"
@@ -126,7 +127,7 @@ setup:
126127
standard: {
127128
query: {
128129
term: {
129-
topic: "science"
130+
subtopic: "astronomy"
130131
}
131132
}
132133
}
@@ -149,16 +150,13 @@ setup:
149150
field: topic
150151
size: 10
151152

152-
- match: { hits.total.value: 3 }
153-
- length: { hits.hits: 2 }
153+
- match: { hits.total.value: 2 }
154+
- length: { hits.hits: 1 }
154155

155156
- match: { hits.hits.0._id: "doc_1" }
156-
- match: { hits.hits.1._id: "doc_3" }
157157

158-
- match: { aggregations.topics.buckets.0.key: "science" }
159-
- match: { aggregations.topics.buckets.0.doc_count: 2 }
160-
- match: { aggregations.topics.buckets.1.key: "geography" }
161-
- match: { aggregations.topics.buckets.1.doc_count: 1 }
158+
- contains: { aggregations.topics.buckets: { key: "geography", doc_count: 1 } }
159+
- contains: { aggregations.topics.buckets: { key: "science", doc_count: 1 } }
162160

163161
---
164162
"Text similarity reranker on top of an RRF retriever":

0 commit comments

Comments
 (0)