summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-08-03 11:58:19 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-08-03 11:58:19 +0000
commitdd6e573fa7fbee8605578204f4fe0c01bb15be27 (patch)
tree0d5c27a206b7f429f6efb47d7cd3093b255167db /searchcore
parent06a385836d6baf59284fffd9065f9a70835dcf81 (diff)
Also perform topk when you do not use a global filter.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/query.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/query.cpp b/searchcore/src/vespa/searchcore/proton/matching/query.cpp
index 07024950779..1d8496c8d7e 100644
--- a/searchcore/src/vespa/searchcore/proton/matching/query.cpp
+++ b/searchcore/src/vespa/searchcore/proton/matching/query.cpp
@@ -259,6 +259,10 @@ Query::handle_global_filters(uint32_t docid_limit, double global_filter_limit)
LOG(debug, "blueprint after handle_global_filters:\n%s\n", _blueprint->asString().c_str());
// strictness may change if optimized order changed:
fetchPostings();
+ } else {
+ auto no_filter = GlobalFilter::create(search::BitVector::UP());
+ _blueprint->set_global_filter(*no_filter);
+ fetchPostings();
}
}