diff options
author | Henning Baldersheim <balder@oath.com> | 2018-07-27 01:09:36 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-07-27 01:09:36 +0200 |
commit | 70e0741c327bfa397d450c36a891e2d99fe57a75 (patch) | |
tree | 3dffa01fdf706407c71feb03df5be4a812e9e103 /searchlib/src/tests | |
parent | 10d7cd86098937b8b559099e34dea365be70dea9 (diff) |
Select the hits to rerank in the selectBest part instead of a later copy.
Stick to full hits instead of feature_t.
Diffstat (limited to 'searchlib/src/tests')
-rw-r--r-- | searchlib/src/tests/hitcollector/hitcollector_test.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
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<feature_t> 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(); |