From 6643f031721f2125ec12984bf951add27d5f48e4 Mon Sep 17 00:00:00 2001 From: HÃ¥vard Pettersen Date: Fri, 5 Jan 2024 15:28:37 +0000 Subject: take strictness into account for flow/cost/sorting use common code with adapters make cost calculation const (sort index, not children) empty AND/ANDNOT estimate now equals input flow --- searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp') diff --git a/searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp b/searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp index f800e124bdc..bbd2744119a 100644 --- a/searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp +++ b/searchlib/src/tests/queryeval/blueprint/blueprint_test.cpp @@ -24,10 +24,10 @@ class MyOr : public IntermediateBlueprint private: public: double calculate_cost() const final { - return cost_of(get_children(), OrFlow()); + return OrFlow::cost_of(get_children()); } double calculate_relative_estimate() const final { - return estimate_of(get_children(), OrFlow()); + return OrFlow::estimate_of(get_children()); } HitEstimate combine(const std::vector &data) const override { return max(data); -- cgit v1.2.3