From 70e0741c327bfa397d450c36a891e2d99fe57a75 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Fri, 27 Jul 2018 01:09:36 +0200 Subject: Select the hits to rerank in the selectBest part instead of a later copy. Stick to full hits instead of feature_t. --- searchlib/src/tests/hitcollector/hitcollector_test.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'searchlib/src/tests/hitcollector/hitcollector_test.cpp') diff --git a/searchlib/src/tests/hitcollector/hitcollector_test.cpp b/searchlib/src/tests/hitcollector/hitcollector_test.cpp index f025c09b6b9..ec5d94c52cb 100644 --- a/searchlib/src/tests/hitcollector/hitcollector_test.cpp +++ b/searchlib/src/tests/hitcollector/hitcollector_test.cpp @@ -231,18 +231,6 @@ TEST_F("testReRank - partial", AscendingScoreFixture) TEST_DO(checkResult(*rs, f.expBv.get())); } -TEST_F("require that scores for 2nd phase candidates can be retrieved", DescendingScoreFixture) -{ - f.addHits(); - std::vector scores = f.hc.getSortedHeapScores(); - ASSERT_EQUAL(5u, scores.size()); - EXPECT_EQUAL(100, scores[0]); - EXPECT_EQUAL(99, scores[1]); - EXPECT_EQUAL(98, scores[2]); - EXPECT_EQUAL(97, scores[3]); - EXPECT_EQUAL(96, scores[4]); -} - TEST_F("require that hits for 2nd phase candidates can be retrieved", DescendingScoreFixture) { f.addHits(); -- cgit v1.2.3