Skip to content

Commit 2803938

Browse files
committed
Fix YAML test
1 parent 6b066be commit 2803938

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ setup:
930930

931931

932932
---
933-
"linear retriever with custom sort and score for nested retrievers":
933+
"linear retriever with custom sort for nested retrievers":
934934
- do:
935935
search:
936936
index: test
@@ -949,17 +949,18 @@ setup:
949949
{
950950
term: {
951951
keyword: {
952-
value: "one" # this will give doc 1 a normalized score of 10 because min == max
952+
value: "one"
953953
}
954954
}
955955
},
956956
{
957957
term: {
958958
keyword: {
959-
value: "two" # this will give doc 2 a normalized score of 10 because min == max
959+
value: "two"
960960
}
961961
}
962-
} ]
962+
}
963+
]
963964
}
964965
},
965966
boost: 10.0
@@ -1058,11 +1059,11 @@ setup:
10581059
size: 2
10591060

10601061
- match: { hits.total.value: 3 }
1061-
- length: {hits.hits: 2}
1062+
- length: { hits.hits: 2 }
10621063
- match: { hits.hits.0._id: "2" }
1063-
- close_to: { hits.hits.0._score: { value: 10.5, error: 0.001 } }
1064+
- close_to: { hits.hits.0._score: { value: 1.5, error: 0.001 } }
10641065
- match: { hits.hits.1._id: "1" }
1065-
- match: { hits.hits.1._score: 10 }
1066+
- match: { hits.hits.1._score: 1 }
10661067

10671068
---
10681069
"should throw when rank_window_size is negative":

0 commit comments

Comments
 (0)