Skip to content

Commit c3c08f6

Browse files
committed
Change to constant_score for determinism
1 parent 3112cec commit c3c08f6

File tree

1 file changed

+35
-4
lines changed

1 file changed

+35
-4
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: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,41 @@ setup:
388388
{
389389
standard: {
390390
query: {
391-
match_all: {}
392-
},
393-
sort: {
394-
integer: "asc"
391+
bool: {
392+
should:
393+
[
394+
{
395+
constant_score: {
396+
filter: {
397+
term: {
398+
integer: 1
399+
}
400+
},
401+
boost: 3
402+
}
403+
},
404+
{
405+
constant_score: {
406+
filter: {
407+
term: {
408+
integer: 2
409+
}
410+
},
411+
boost: 2
412+
}
413+
},
414+
{
415+
constant_score: {
416+
filter: {
417+
term: {
418+
integer: 3
419+
}
420+
},
421+
boost: 1
422+
}
423+
}
424+
]
425+
}
395426
}
396427
}
397428
},

0 commit comments

Comments
 (0)