diff options
author | Geir Storli <geirst@vespa.ai> | 2024-04-13 22:20:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 22:20:39 +0200 |
commit | 36f9416829946ad0fedd2e3138ce5f3b1b715671 (patch) | |
tree | e10d9d81b56c5608d218ec0535dcffa804bfb630 | |
parent | 5d5235e411582aa8117df7bb1c10bf373c11e76d (diff) | |
parent | d3be7d9a00ebcbfe6d3e6071cae9f8bf0d66b572 (diff) |
Merge pull request #30905 from vespa-engine/havardpe/improve-strict-and-sort-when-allowedv8.330.52
improve strict and sorting when allowed
-rw-r--r-- | searchlib/src/vespa/searchlib/queryeval/intermediate_blueprints.cpp | 3 |
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()); } |