diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-10-15 11:17:21 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-10-15 11:22:18 +0000 |
commit | 4023419b26cb8f3f3a4cd9886596db2475d43ae3 (patch) | |
tree | 561b2932fbd11da7377b5bb20cbc16182773b774 /searchcore | |
parent | d78c40cb1330fea628684b9aaa8aa993fd70eecc (diff) |
check is_double via type
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/docsum_matcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/docsum_matcher.cpp b/searchcore/src/vespa/searchcore/proton/matching/docsum_matcher.cpp index 624daaf3cb8..a7a74de35d9 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/docsum_matcher.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/docsum_matcher.cpp @@ -72,7 +72,7 @@ get_feature_set(const MatchToolsFactory &mtf, for (uint32_t j = 0; j < featureNames.size(); ++j) { if (resolver.is_object(j)) { auto obj = resolver.resolve(j).as_object(docId); - if (! obj.get().is_double()) { + if (! obj.get().type().is_double()) { vespalib::nbostream buf; vespalib::eval::EngineOrFactory::get().encode(obj.get(), buf); f[j].set_data(vespalib::Memory(buf.peek(), buf.size())); |