diff options
author | Håvard Pettersen <havardpe@yahooinc.com> | 2024-04-12 16:22:41 +0000 |
---|---|---|
committer | Håvard Pettersen <havardpe@yahooinc.com> | 2024-04-12 16:23:33 +0000 |
commit | d3be7d9a00ebcbfe6d3e6071cae9f8bf0d66b572 (patch) | |
tree | ce58471e42f74fe3d9be9c22b071a2ebd511846f | |
parent | ff368acc961eca78e681fc33400c9ad93e95895a (diff) |
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()); } |