From d3be7d9a00ebcbfe6d3e6071cae9f8bf0d66b572 Mon Sep 17 00:00:00 2001 From: HÃ¥vard Pettersen Date: Fri, 12 Apr 2024 16:22:41 +0000 Subject: improve strict and sorting when allowed --- searchlib/src/vespa/searchlib/queryeval/intermediate_blueprints.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/searchlib/src/vespa/searchlib/queryeval/intermediate_blueprints.cpp b/searchlib/src/vespa/searchlib/queryeval/intermediate_blueprints.cpp index fb1bb0b6cf1..449a6a044b9 100644 --- a/searchlib/src/vespa/searchlib/queryeval/intermediate_blueprints.cpp +++ b/searchlib/src/vespa/searchlib/queryeval/intermediate_blueprints.cpp @@ -261,6 +261,9 @@ AndBlueprint::sort(Children &children, bool strict, bool sort_by_cost) const { if (sort_by_cost) { AndFlow::sort(children, strict); + if (strict && opt_allow_force_strict()) { + AndFlow::reorder_for_extra_strictness(children, true, 3); + } } else { std::sort(children.begin(), children.end(), TieredLessEstimate()); } -- cgit v1.2.3