summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/query.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/query.cpp b/searchcore/src/vespa/searchcore/proton/matching/query.cpp
index d9051ac09e7..250a53591d4 100644
--- a/searchcore/src/vespa/searchcore/proton/matching/query.cpp
+++ b/searchcore/src/vespa/searchcore/proton/matching/query.cpp
@@ -219,15 +219,16 @@ Query::reserveHandles(const IRequestContext & requestContext, ISearchContext &co
if (rankOrAndNot != nullptr) {
(*andBlueprint)
.addChild(rankOrAndNot->removeChild(0))
- .addChild(std::move(_whiteListBlueprint));
+ .addChild(std::move(_whiteListBlueprint))
+ .setDocIdLimit(context.getDocIdLimit());
rankOrAndNot->insertChild(0, std::move(andBlueprint));
} else {
(*andBlueprint)
.addChild(std::move(_blueprint))
- .addChild(std::move(_whiteListBlueprint));
+ .addChild(std::move(_whiteListBlueprint))
+ .setDocIdLimit(context.getDocIdLimit());
_blueprint = std::move(andBlueprint);
}
- _blueprint->setDocIdLimit(context.getDocIdLimit());
LOG(debug, "blueprint after white listing:\n%s\n", _blueprint->asString().c_str());
}
}