diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-11-18 15:49:26 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-11-18 15:49:26 +0000 |
commit | c7be739a42a32b445f80f944ffdd6e535142a1ce (patch) | |
tree | 54ff12bc5977673139a576ecbff42a826e4169a0 /searchlib | |
parent | 793193faeffcec58079876d35dc064a5a4304060 (diff) |
Allow override of keep-rank-count via the internal vespa.hitcollector.arraysize rank param.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/fef/indexproperties.cpp | 8 | ||||
-rw-r--r-- | searchlib/src/vespa/searchlib/fef/indexproperties.h | 1 |
2 files changed, 8 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/fef/indexproperties.cpp b/searchlib/src/vespa/searchlib/fef/indexproperties.cpp index 70433800469..26a7be005b7 100644 --- a/searchlib/src/vespa/searchlib/fef/indexproperties.cpp +++ b/searchlib/src/vespa/searchlib/fef/indexproperties.cpp @@ -587,7 +587,13 @@ const uint32_t ArraySize::DEFAULT_VALUE(10000); uint32_t ArraySize::lookup(const Properties &props) { - return lookupUint32(props, NAME, DEFAULT_VALUE); + return lookup(props, DEFAULT_VALUE); +} + +uint32_t +ArraySize::lookup(const Properties &props, uint32_t defaultValue) +{ + return lookupUint32(props, NAME, defaultValue); } const vespalib::string EstimatePoint::NAME("vespa.hitcollector.estimatepoint"); diff --git a/searchlib/src/vespa/searchlib/fef/indexproperties.h b/searchlib/src/vespa/searchlib/fef/indexproperties.h index 3ebfe781400..5ff4ea26bd8 100644 --- a/searchlib/src/vespa/searchlib/fef/indexproperties.h +++ b/searchlib/src/vespa/searchlib/fef/indexproperties.h @@ -476,6 +476,7 @@ namespace hitcollector { static const vespalib::string NAME; static const uint32_t DEFAULT_VALUE; static uint32_t lookup(const Properties &props); + static uint32_t lookup(const Properties &props, uint32_t defaultValue); }; /** |