summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@yahooinc.com>2024-02-02 10:59:03 +0000
committerHåvard Pettersen <havardpe@yahooinc.com>2024-02-02 12:28:36 +0000
commit4bd0028bc7ef17604cb11167e58273aa13c0f954 (patch)
treed9afa86ae92a4b842f4563b07dafe31d0642ff07 /searchcore
parent21fb1321170d4709dae20b314dba3fdd908ec9d6 (diff)
re-wire flow stats in blueprints
Diffstat (limited to 'searchcore')
-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; }