aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-12-19 05:43:39 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2018-12-19 05:43:39 +0000
commite78360cf485b90019d15cdb7435156ea2a5fea77 (patch)
tree0f07b751fdac14f8f9859f80470239fa75e1391f
parent38fdb8afeb37d111f29b146fca03620b4a4f3d4a (diff)
Follow api change
-rw-r--r--searchlib/src/tests/attribute/bitvector/bitvector_test.cpp4
-rw-r--r--searchlib/src/tests/common/bitvector/bitvector_test.cpp8
2 files changed, 3 insertions, 9 deletions
diff --git a/searchlib/src/tests/attribute/bitvector/bitvector_test.cpp b/searchlib/src/tests/attribute/bitvector/bitvector_test.cpp
index abc9d3aa975..a8abf1ff4fe 100644
--- a/searchlib/src/tests/attribute/bitvector/bitvector_test.cpp
+++ b/searchlib/src/tests/attribute/bitvector/bitvector_test.cpp
@@ -616,9 +616,7 @@ public:
~Verifier();
SearchIterator::UP create(bool strict) const override {
- return _inverted
- ? BitVectorIterator::createInverse(_bv.get(), getDocIdLimit(), _tfmd, strict)
- : BitVectorIterator::create(_bv.get(), getDocIdLimit(), _tfmd, strict);
+ return BitVectorIterator::create(_bv.get(), getDocIdLimit(), _tfmd, strict, _inverted);
}
private:
diff --git a/searchlib/src/tests/common/bitvector/bitvector_test.cpp b/searchlib/src/tests/common/bitvector/bitvector_test.cpp
index ea70806aec2..22a47952acb 100644
--- a/searchlib/src/tests/common/bitvector/bitvector_test.cpp
+++ b/searchlib/src/tests/common/bitvector/bitvector_test.cpp
@@ -128,9 +128,7 @@ assertBV(const std::string & exp, const BitVector & act)
{
bool res1 = EXPECT_EQUAL(exp, toString(act));
search::fef::TermFieldMatchData f;
- search::fef::TermFieldMatchDataArray a;
- a.add(&f);
- queryeval::SearchIterator::UP it(BitVectorIterator::create(&act, a, true));
+ queryeval::SearchIterator::UP it(BitVectorIterator::create(&act, f, true));
BitVectorIterator & b(dynamic_cast<BitVectorIterator &>(*it));
bool res2 = EXPECT_EQUAL(exp, toString(b));
return res1 && res2;
@@ -296,9 +294,7 @@ TEST("requireThatSequentialOperationsOnPartialWorks")
TEST("requireThatInitRangeStaysWithinBounds") {
AllocatedBitVector v1(128);
search::fef::TermFieldMatchData f;
- search::fef::TermFieldMatchDataArray a;
- a.add(&f);
- queryeval::SearchIterator::UP it(BitVectorIterator::create(&v1, a, true));
+ queryeval::SearchIterator::UP it(BitVectorIterator::create(&v1, f, true));
it->initRange(700, 800);
EXPECT_TRUE(it->isAtEnd());
}