diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-11-21 12:24:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-21 12:24:54 +0100 |
commit | 734f073bbef0bae741239a8d376cbcb88cd8cfd1 (patch) | |
tree | 2e8d89d96395b08a0860a4f6985eb38a8db21e37 /searchlib | |
parent | 4ae5d261977b0ee78223c2e96e38fc5859fd2906 (diff) | |
parent | aced8e21a99e30a216f39d06c1b8ff257adf3b14 (diff) |
Merge pull request #24928 from vespa-engine/balder/-let-arraysize-be-overridden-in-query
Allow override of keep-rank-count via the internal vespa.hitcollector…
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); }; /** |