aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@yahooinc.com>2024-04-12 16:22:41 +0000
committerHåvard Pettersen <havardpe@yahooinc.com>2024-04-12 16:23:33 +0000
commitd3be7d9a00ebcbfe6d3e6071cae9f8bf0d66b572 (patch)
treece58471e42f74fe3d9be9c22b071a2ebd511846f
parentff368acc961eca78e681fc33400c9ad93e95895a (diff)
improve strict and sorting when allowed
-rw-r--r--searchlib/src/vespa/searchlib/queryeval/intermediate_blueprints.cpp3
1 files changed, 3 insertions, 0 deletions
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());
}