diff options
author | Haavard <havardpe@yahoo-inc.com> | 2016-12-14 09:55:37 +0000 |
---|---|---|
committer | Haavard <havardpe@yahoo-inc.com> | 2016-12-14 10:08:33 +0000 |
commit | cea23ae0ad6f0cf114b7adc5f35a9d9f13465e9a (patch) | |
tree | cf1aa7ca665dff1cbf01266bd8f35275295d2855 /searchlib/src/tests/queryeval/blueprint | |
parent | 661f9809c40892d3828a990b2a678f7131d6591f (diff) |
remove features from match data
Diffstat (limited to 'searchlib/src/tests/queryeval/blueprint')
3 files changed, 11 insertions, 11 deletions
diff --git a/searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp b/searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp index 7fcb1c20932..e8c2a20a21a 100644 --- a/searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp +++ b/searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp @@ -162,7 +162,7 @@ private: public: Test() : vespalib::TestApp(), - _md(MatchData::makeTestInstance(0, 100, 10)) + _md(MatchData::makeTestInstance(100, 10)) { } Blueprint::UP buildBlueprint1(); diff --git a/searchlib/src/tests/queryeval/blueprint/intermediate_blueprints_test.cpp b/searchlib/src/tests/queryeval/blueprint/intermediate_blueprints_test.cpp index 62bbee6e08c..ae856f7d4a0 100644 --- a/searchlib/src/tests/queryeval/blueprint/intermediate_blueprints_test.cpp +++ b/searchlib/src/tests/queryeval/blueprint/intermediate_blueprints_test.cpp @@ -1043,7 +1043,7 @@ TEST("test WeakAnd Blueprint") { FakeResult z = FakeResult().doc(1).doc(4); { WeakAndBlueprint wa(456); - MatchData::UP md = MatchData::makeTestInstance(0, 100, 10); + MatchData::UP md = MatchData::makeTestInstance(100, 10); wa.addTerm(Blueprint::UP(new FakeBlueprint(field, x)), 120); wa.addTerm(Blueprint::UP(new FakeBlueprint(field, z)), 140); wa.addTerm(Blueprint::UP(new FakeBlueprint(field, y)), 130); @@ -1099,7 +1099,7 @@ TEST("require_that_unpack_of_or_over_multisearch_is_optimized") { ap((new OrBlueprint())-> addChild(std::move(child1)). addChild(std::move(child2)))); - MatchData::UP md = MatchData::makeTestInstance(0, 100, 10); + MatchData::UP md = MatchData::makeTestInstance(100, 10); top_up->fetchPostings(false); EXPECT_EQUAL("search::queryeval::OrLikeSearch<false, search::queryeval::(anonymous namespace)::FullUnpack>", top_up->createSearch(*md, false)->getClassName()); @@ -1125,7 +1125,7 @@ TEST("require_that_unpack_of_or_is_optimized") { addChild(ap(MyLeafSpec(20).addField(1,1).create())). addChild(ap(MyLeafSpec(20).addField(2,2).create())). addChild(ap(MyLeafSpec(10).addField(3,3).create())))); - MatchData::UP md = MatchData::makeTestInstance(0, 100, 10); + MatchData::UP md = MatchData::makeTestInstance(100, 10); top_up->fetchPostings(false); EXPECT_EQUAL("search::queryeval::OrLikeSearch<false, search::queryeval::(anonymous namespace)::FullUnpack>", top_up->createSearch(*md, false)->getClassName()); @@ -1144,7 +1144,7 @@ TEST("require_that_unpack_of_and_is_optimized") { addChild(ap(MyLeafSpec(20).addField(1,1).create())). addChild(ap(MyLeafSpec(20).addField(2,2).create())). addChild(ap(MyLeafSpec(10).addField(3,3).create())))); - MatchData::UP md = MatchData::makeTestInstance(0, 100, 10); + MatchData::UP md = MatchData::makeTestInstance(100, 10); top_up->fetchPostings(false); EXPECT_EQUAL("search::queryeval::AndSearchNoStrict<search::queryeval::(anonymous namespace)::FullUnpack>", top_up->createSearch(*md, false)->getClassName()); @@ -1164,7 +1164,7 @@ TEST("require_that_unpack_optimization_is_honoured_by_parents") { addChild(ap(MyLeafSpec(20).addField(1,1).create())). addChild(ap(MyLeafSpec(20).addField(2,2).create())). addChild(ap(MyLeafSpec(10).addField(3,3).create())))))); - MatchData::UP md = MatchData::makeTestInstance(0, 100, 10); + MatchData::UP md = MatchData::makeTestInstance(100, 10); top_up->fetchPostings(false); EXPECT_EQUAL("search::queryeval::AndSearchNoStrict<search::queryeval::(anonymous namespace)::FullUnpack>", top_up->createSearch(*md, false)->getClassName()); @@ -1213,7 +1213,7 @@ TEST("require that children does not optimize when parents refuse them to") { addTerm(index.getIndex().createBlueprint(requestContext, FieldSpec("f2", 2, idxth21), makeTerm("w2")), 1.0))); - MatchData::UP md = MatchData::makeTestInstance(0, 100, 10); + MatchData::UP md = MatchData::makeTestInstance(100, 10); top_up->fetchPostings(false); SearchIterator::UP search = top_up->createSearch(*md, true); EXPECT_EQUAL("search::queryeval::EquivImpl<true>", search->getClassName()); @@ -1251,7 +1251,7 @@ TEST("require_that_unpack_optimization_is_overruled_by_equiv") { addChild(ap(MyLeafSpec(20).addField(2,idxth2).create())). addChild(ap(MyLeafSpec(10).addField(3,idxth3).create()))), 1.0))); - MatchData::UP md = MatchData::makeTestInstance(0, 100, 10); + MatchData::UP md = MatchData::makeTestInstance(100, 10); top_up->fetchPostings(false); SearchIterator::UP search = top_up->createSearch(*md, true); EXPECT_EQUAL("search::queryeval::EquivImpl<true>", search->getClassName()); diff --git a/searchlib/src/tests/queryeval/blueprint/leaf_blueprints_test.cpp b/searchlib/src/tests/queryeval/blueprint/leaf_blueprints_test.cpp index 6efa3454d01..782e1ea5ea8 100644 --- a/searchlib/src/tests/queryeval/blueprint/leaf_blueprints_test.cpp +++ b/searchlib/src/tests/queryeval/blueprint/leaf_blueprints_test.cpp @@ -22,7 +22,7 @@ public: void Test::testEmptyBlueprint() { - MatchData::UP md(MatchData::makeTestInstance(0, 100, 10)); + MatchData::UP md(MatchData::makeTestInstance(100, 10)); EmptyBlueprint empty(FieldSpecBase(1, 11)); ASSERT_TRUE(empty.getState().numFields() == 1u); EXPECT_EQUAL(1u, empty.getState().field(0).getFieldId()); @@ -40,7 +40,7 @@ Test::testEmptyBlueprint() void Test::testSimpleBlueprint() { - MatchData::UP md(MatchData::makeTestInstance(0, 100, 10)); + MatchData::UP md(MatchData::makeTestInstance(100, 10)); SimpleResult a; a.addHit(3).addHit(5).addHit(7); SimpleBlueprint simple(a); @@ -59,7 +59,7 @@ Test::testSimpleBlueprint() void Test::testFakeBlueprint() { - MatchData::UP md(MatchData::makeTestInstance(0, 100, 10)); + MatchData::UP md(MatchData::makeTestInstance(100, 10)); FakeResult fake; fake.doc(10).len(50).pos(2).pos(3) .doc(25).len(10).pos(5); |