diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-12-11 08:58:37 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-12-11 08:58:37 +0000 |
commit | 8bd3d0f7c319117d7045d8035993687929daff83 (patch) | |
tree | 8d4d2a903f0869346ef33c980e1ed1b738b251b8 /searchcore | |
parent | 18e3fb5c91e9e40d46fccc1b8988c445f27ec19e (diff) |
Only set docid on the new part of the blueprint tree. The old part already has it set.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/query.cpp | 7 |
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()); } } |