summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-06-22 16:53:11 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-06-22 16:53:11 +0200
commit0400c6cccc22e42973a3e481ad1ede0816cb3dbe (patch)
treec6f73c311dd7f87027cb812d0feb853b75ba0fff /searchlib
parent53f3e7df59175656e067c2732503309b0b474edb (diff)
Init correct range
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/tests/attribute/searchcontext/searchcontext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/tests/attribute/searchcontext/searchcontext.cpp b/searchlib/src/tests/attribute/searchcontext/searchcontext.cpp
index 20e5b592501..9829ff27104 100644
--- a/searchlib/src/tests/attribute/searchcontext/searchcontext.cpp
+++ b/searchlib/src/tests/attribute/searchcontext/searchcontext.cpp
@@ -762,7 +762,7 @@ SearchContextTest::testNonStrictSearchIterator(SearchContext & threeHits,
{ // search for value with three hits
threeHits.fetchPostings(false);
SearchBasePtr sb = threeHits.createIterator(&dummy, false);
- sb->initFullRange();
+ sb->initRange(1, threeHits.attribute().getCommittedDocIdLimit());
EXPECT_TRUE(typeTester.matches(*sb));
EXPECT_TRUE(sb->seek(1));
EXPECT_EQUAL(sb->getDocId(), 1u);
@@ -780,7 +780,7 @@ SearchContextTest::testNonStrictSearchIterator(SearchContext & threeHits,
{ // search for value with no hits
noHits.fetchPostings(false);
SearchBasePtr sb = noHits.createIterator(&dummy, false);
- sb->initFullRange();
+ sb->initRange(1, threeHits.attribute().getCommittedDocIdLimit());
EXPECT_TRUE(typeTester.matches(*sb));
EXPECT_TRUE(sb->getDocId() == sb->beginId() ||