diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-08-15 13:45:40 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-08-15 13:45:40 +0000 |
commit | 7dd6b3c14864da5b7b75ae11de7ef7ec1442fe10 (patch) | |
tree | d908a1b6f707920a92b1473ff556e636c04b06cb /searchcore | |
parent | 58b471ce378f5d8604213f37b42aea53d1b6e49f (diff) |
Add rank setup compile errors to error message.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/matcher.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp b/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp index 826860b743e..a119b9e6377 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/matcher.cpp @@ -32,10 +32,12 @@ using search::MatchingElements; using search::attribute::IAttributeContext; using search::fef::MatchDataLayout; using search::fef::MatchData; +using search::fef::RankSetup; using search::fef::indexproperties::hitcollector::HeapSize; using search::queryeval::Blueprint; using search::queryeval::SearchIterator; using vespalib::Doom; +using vespalib::make_string_short::fmt; namespace proton::matching { @@ -117,7 +119,7 @@ Matcher::Matcher(const search::index::Schema &schema, const Properties &props, c _rankSetup = std::make_shared<search::fef::RankSetup>(_blueprintFactory, _indexEnv); _rankSetup->configure(); // reads config values from the property map if (!_rankSetup->compile()) { - throw vespalib::IllegalArgumentException("failed to compile rank setup", VESPA_STRLOC); + throw vespalib::IllegalArgumentException(fmt("failed to compile rank setup :\n%s", _rankSetup->getJoinedErrors().c_str()), VESPA_STRLOC); } } |