diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2018-09-07 10:28:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-07 10:28:30 +0200 |
commit | e008375a7c35c3cff83710c81cc2fab96a3f79ab (patch) | |
tree | 8174390b132185f90710ae006a75dc582296adaf /searchlib | |
parent | 706f62d3d67daa339398dbfbaec3b5798b5a25ee (diff) | |
parent | 3c497896a20b1e4636a628802b5e722800a20bd2 (diff) |
Merge pull request #6811 from vespa-engine/lesters/add-dynamic-rerank-count
Add query override of rerank-count
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 b05d5fb4e54..5cd6c479d24 100644 --- a/searchlib/src/vespa/searchlib/fef/indexproperties.cpp +++ b/searchlib/src/vespa/searchlib/fef/indexproperties.cpp @@ -399,7 +399,13 @@ const uint32_t HeapSize::DEFAULT_VALUE(100); uint32_t HeapSize::lookup(const Properties &props) { - return lookupUint32(props, NAME, DEFAULT_VALUE); + return lookup(props, DEFAULT_VALUE); +} + +uint32_t +HeapSize::lookup(const Properties &props, uint32_t defaultValue) +{ + return lookupUint32(props, NAME, defaultValue); } const vespalib::string ArraySize::NAME("vespa.hitcollector.arraysize"); diff --git a/searchlib/src/vespa/searchlib/fef/indexproperties.h b/searchlib/src/vespa/searchlib/fef/indexproperties.h index 68bed502121..8b78e347a90 100644 --- a/searchlib/src/vespa/searchlib/fef/indexproperties.h +++ b/searchlib/src/vespa/searchlib/fef/indexproperties.h @@ -320,6 +320,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); }; /** |