summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorGeir Storli <geirst@vespa.ai>2024-05-15 12:12:40 +0000
committerGeir Storli <geirst@vespa.ai>2024-05-15 12:12:40 +0000
commit64fe7853011b67a5f3f4b42903905a2b4b29afbf (patch)
treec3651409875a2e944c2431cbda6028ead0d5fc8e /searchlib
parent63c765e1e33e02cd28f15f1a7bfad01f5f63fd43 (diff)
Update flow stats to reflect that reverse hash lookup is always used when non-strict.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attribute_weighted_set_blueprint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/attribute_weighted_set_blueprint.cpp b/searchlib/src/vespa/searchlib/attribute/attribute_weighted_set_blueprint.cpp
index 928023c0f94..e2d7f0fe312 100644
--- a/searchlib/src/vespa/searchlib/attribute/attribute_weighted_set_blueprint.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attribute_weighted_set_blueprint.cpp
@@ -132,7 +132,7 @@ AttributeWeightedSetBlueprint::calculate_flow_stats(uint32_t docid_limit) const
using MyAdapter = attribute::HitEstimateFlowStatsAdapter;
size_t num_indirections = queryeval::flow::get_num_indirections(_attr.getBasicType(), _attr.getCollectionType());
double est = OrFlow::estimate_of(MyAdapter(docid_limit, num_indirections), _estimates);
- return {est, OrFlow::cost_of(MyAdapter(docid_limit, num_indirections), _estimates, false),
+ return {est, queryeval::flow::reverse_hash_lookup(),
OrFlow::cost_of(MyAdapter(docid_limit, num_indirections), _estimates, true) + queryeval::flow::heap_cost(est, _estimates.size())};
}