summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/queryeval/dot_product
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-01-04 17:31:44 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-08-12 17:28:27 +0000
commit6dcfc6aaebc0d965c09e405069722631b785c9d1 (patch)
treeedca9fa2e6b77032e77d35599e410f230770942f /searchlib/src/tests/queryeval/dot_product
parent4e682e5e032f7a1390717662080c26efd63a4483 (diff)
Allow test to work with unpack too.
Diffstat (limited to 'searchlib/src/tests/queryeval/dot_product')
-rw-r--r--searchlib/src/tests/queryeval/dot_product/dot_product_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/tests/queryeval/dot_product/dot_product_test.cpp b/searchlib/src/tests/queryeval/dot_product/dot_product_test.cpp
index 77cc7920ea8..d0951cbe2d3 100644
--- a/searchlib/src/tests/queryeval/dot_product/dot_product_test.cpp
+++ b/searchlib/src/tests/queryeval/dot_product/dot_product_test.cpp
@@ -264,7 +264,7 @@ TEST_F("test Eager Matching Children", MockFixture(5)) {
class IteratorChildrenVerifier : public search::test::IteratorChildrenVerifier {
private:
SearchIterator::UP create(const std::vector<SearchIterator*> &children) const override {
- std::vector<fef::TermFieldMatchData*> no_child_match;
+ std::vector<fef::TermFieldMatchData*> no_child_match(children.size(), &_tfmd);
MatchData::UP no_match_data;
return DotProductSearch::create(children, _tfmd, false, no_child_match, _weights, std::move(no_match_data));
}
@@ -273,7 +273,7 @@ private:
class WeightIteratorChildrenVerifier : public search::test::DwaIteratorChildrenVerifier {
private:
SearchIterator::UP create(std::vector<DocumentWeightIterator> && children) const override {
- return SearchIterator::UP(DotProductSearch::create(_tfmd, false, _weights, std::move(children)));
+ return DotProductSearch::create(_tfmd, false, _weights, std::move(children));
}
};