summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-08-30 09:14:29 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-08-30 09:14:29 +0000
commit09a6546873aedda73665bde53ae447f6449082df (patch)
treebcadacf8cdaf05ae94d79f1ea493755f81927a1b /searchlib
parent80a76a212c78cf214a1d4a5abbc37324dc84e101 (diff)
Allow query time control of spli/delay query optimisations.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/fef/indexproperties.cpp8
-rw-r--r--searchlib/src/vespa/searchlib/fef/indexproperties.h6
2 files changed, 10 insertions, 4 deletions
diff --git a/searchlib/src/vespa/searchlib/fef/indexproperties.cpp b/searchlib/src/vespa/searchlib/fef/indexproperties.cpp
index 168f5e4369f..ec2d02c2460 100644
--- a/searchlib/src/vespa/searchlib/fef/indexproperties.cpp
+++ b/searchlib/src/vespa/searchlib/fef/indexproperties.cpp
@@ -318,11 +318,15 @@ namespace matching {
const vespalib::string SplitUnpackingIterators::NAME("vespa.matching.split_unpacking_iterators");
const bool SplitUnpackingIterators::DEFAULT_VALUE(false);
-bool SplitUnpackingIterators::check(const Properties &props) { return lookupBool(props, NAME, DEFAULT_VALUE); }
+bool SplitUnpackingIterators::check(const Properties &props, bool fallback) {
+ return lookupBool(props, NAME, fallback);
+}
const vespalib::string DelayUnpackingIterators::NAME("vespa.matching.delay_unpacking_iterators");
const bool DelayUnpackingIterators::DEFAULT_VALUE(false);
-bool DelayUnpackingIterators::check(const Properties &props) { return lookupBool(props, NAME, DEFAULT_VALUE); }
+bool DelayUnpackingIterators::check(const Properties &props, bool fallback) {
+ return lookupBool(props, NAME, fallback);
+}
const vespalib::string TermwiseLimit::NAME("vespa.matching.termwise_limit");
const double TermwiseLimit::DEFAULT_VALUE(1.0);
diff --git a/searchlib/src/vespa/searchlib/fef/indexproperties.h b/searchlib/src/vespa/searchlib/fef/indexproperties.h
index ce3798a6c8e..f8cb51683d5 100644
--- a/searchlib/src/vespa/searchlib/fef/indexproperties.h
+++ b/searchlib/src/vespa/searchlib/fef/indexproperties.h
@@ -237,7 +237,8 @@ namespace matching {
struct SplitUnpackingIterators {
static const vespalib::string NAME;
static const bool DEFAULT_VALUE;
- static bool check(const Properties &props);
+ static bool check(const Properties &props) { return check(props, DEFAULT_VALUE); }
+ static bool check(const Properties &props, bool fallback);
};
/**
@@ -248,7 +249,8 @@ namespace matching {
struct DelayUnpackingIterators {
static const vespalib::string NAME;
static const bool DEFAULT_VALUE;
- static bool check(const Properties &props);
+ static bool check(const Properties &props) { return check(props, DEFAULT_VALUE); }
+ static bool check(const Properties &props, bool fallback);
};
/**