summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-06-22 16:45:55 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-06-22 16:45:55 +0200
commit53f3e7df59175656e067c2732503309b0b474edb (patch)
tree352a20e9a23f19f7e34a9653833a2b8af23bdf0f /searchcore
parent7ec35f103e2b4aaf806774c9fe6cde2d7312cdb3 (diff)
Add a searchStrict method on SimpleResult that takes docIdLimit.
Set docId limit on the BlackListBlueprint.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp2
-rw-r--r--searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp b/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp
index 7bb0fdbdc33..4fcf7d37118 100644
--- a/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp
+++ b/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp
@@ -204,7 +204,7 @@ assertBlackList(const SimpleResult &exp, Blueprint::UP blackListBlueprint, bool
blackListBlueprint->fetchPostings(strict);
SearchIterator::UP sb = blackListBlueprint->createSearch(*md, strict);
SimpleResult act;
- act.search(*sb);
+ act.searchStrict(*sb, blackListBlueprint->get_docid_limit());
return EXPECT_EQUAL(exp, act);
}
diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp
index 8c0fb945d8e..695e3ba77aa 100644
--- a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp
+++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp
@@ -254,6 +254,7 @@ public:
_searchCtx(std::move(searchCtx)),
_matchDataVector()
{
+ setDocIdLimit(_searchCtx->attribute().getCommittedDocIdLimit());
setEstimate(HitEstimate(0, false));
}