aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src
diff options
context:
space:
mode:
authorGeir Storli <geirst@yahooinc.com>2024-02-05 10:48:34 +0100
committerGitHub <noreply@github.com>2024-02-05 10:48:34 +0100
commit3da723264949a92244565b962c2a4f773203d1e8 (patch)
tree776dc51eb9762eb6acd9e0ca579ba0fa38177390 /searchcore/src
parent2a7f13b47eb2ddb18e4a98d94b8e3c1d41e89bbe (diff)
parent4bd0028bc7ef17604cb11167e58273aa13c0f954 (diff)
Merge pull request #30140 from vespa-engine/havardpe/re-wire-flow-stats-calculation
re-wire flow stats in blueprints
Diffstat (limited to 'searchcore/src')
-rw-r--r--searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp
index 9e9199bc8ba..5a58aa869e0 100644
--- a/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp
+++ b/searchcore/src/vespa/searchcore/proton/documentmetastore/lid_allocator.cpp
@@ -13,6 +13,7 @@ LOG_SETUP(".proton.documentmetastore.lid_allocator");
using search::fef::TermFieldMatchDataArray;
using search::queryeval::Blueprint;
+using search::queryeval::FlowStats;
using search::queryeval::FullSearch;
using search::queryeval::SearchIterator;
using search::queryeval::SimpleLeafBlueprint;
@@ -222,8 +223,9 @@ public:
setEstimate(HitEstimate(_activeLids.size(), false));
}
- double calculate_relative_estimate() const final {
- return abs_to_rel_est(getState().estimate().estHits, get_docid_limit());
+ FlowStats calculate_flow_stats(uint32_t docid_limit) const override {
+ auto est = abs_to_rel_est(getState().estimate().estHits, docid_limit);
+ return {est, 1.0, est};
}
bool isWhiteList() const noexcept final { return true; }