summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-12-04 20:07:25 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-12-04 20:07:25 +0000
commitfb6ca4e6467dfd20b01722122f4054f057052a96 (patch)
tree1b3b49bab2de44deb3d01d223dc0f0060733241d
parentc9c33625b44bd6fe551164f3d3f1facb46df75ba (diff)
If not allowed to create posting lists while non-strict shortcut evaluation.
-rw-r--r--searchlib/src/vespa/searchlib/attribute/postinglistsearchcontext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/postinglistsearchcontext.h b/searchlib/src/vespa/searchlib/attribute/postinglistsearchcontext.h
index f5683546eea..eefb2ea77d5 100644
--- a/searchlib/src/vespa/searchlib/attribute/postinglistsearchcontext.h
+++ b/searchlib/src/vespa/searchlib/attribute/postinglistsearchcontext.h
@@ -436,6 +436,8 @@ NumericPostingSearchContext<BaseSC, AttrT, DataT>::use_posting_lists_when_non_st
// Based on this we see that LMC = 5 * PLMC.
// The same relationship is found with the test case range_hits_ratio=[200].
+ if ( ! info.create_postinglist_when_non_strict()) return false;
+
constexpr float lookup_match_constant = 5.0;
constexpr float posting_list_merge_constant = 1.0;