diff options
author | Håvard Pettersen <havardpe@oath.com> | 2017-09-01 14:09:20 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@oath.com> | 2017-09-01 14:27:48 +0000 |
commit | 4f6705537beea82533d19e35d032f24a89897b8a (patch) | |
tree | 5afd9ddcd14d295561b4ef8f055c3683b3686fed /searchcore/src/tests/proton | |
parent | abeb3febf928c011247dcd83d521d9ae00f68515 (diff) |
use 0.0 rank score for results when not ranking
Diffstat (limited to 'searchcore/src/tests/proton')
-rw-r--r-- | searchcore/src/tests/proton/matching/matching_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/matching/matching_test.cpp b/searchcore/src/tests/proton/matching/matching_test.cpp index 679108ba872..fefc6f361a9 100644 --- a/searchcore/src/tests/proton/matching/matching_test.cpp +++ b/searchcore/src/tests/proton/matching/matching_test.cpp @@ -494,11 +494,11 @@ TEST("require that sortspec can be used (multi-threaded)") { SearchReply::UP reply = world.performSearch(request, threads); ASSERT_EQUAL(9u, reply->hits.size()); EXPECT_EQUAL(document::DocumentId("doc::100").getGlobalId(), reply->hits[0].gid); - EXPECT_EQUAL(default_rank_value, reply->hits[0].metric); + EXPECT_EQUAL(zero_rank_value, reply->hits[0].metric); EXPECT_EQUAL(document::DocumentId("doc::200").getGlobalId(), reply->hits[1].gid); - EXPECT_EQUAL(default_rank_value, reply->hits[1].metric); + EXPECT_EQUAL(zero_rank_value, reply->hits[1].metric); EXPECT_EQUAL(document::DocumentId("doc::300").getGlobalId(), reply->hits[2].gid); - EXPECT_EQUAL(default_rank_value, reply->hits[2].metric); + EXPECT_EQUAL(zero_rank_value, reply->hits[2].metric); } } |