check is_double via type
@@ -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()));
