diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-12-02 14:35:22 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-12-02 20:06:02 +0000 |
commit | 4b636a18fa7e1a4c483942f87ba4b4134df78b79 (patch) | |
tree | 1cbedcd9abfb8883a3ab3b1e74672defb3f17d0f /streamingvisitors | |
parent | ed58cd5826de9da0ed6a963a35c1246abebac1e4 (diff) |
engine.encode -> encode_value
Diffstat (limited to 'streamingvisitors')
-rw-r--r-- | streamingvisitors/src/vespa/searchvisitor/hitcollector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/streamingvisitors/src/vespa/searchvisitor/hitcollector.cpp b/streamingvisitors/src/vespa/searchvisitor/hitcollector.cpp index 12dce7d376c..b0cb058d762 100644 --- a/streamingvisitors/src/vespa/searchvisitor/hitcollector.cpp +++ b/streamingvisitors/src/vespa/searchvisitor/hitcollector.cpp @@ -4,7 +4,7 @@ #include <vespa/searchlib/fef/feature_resolver.h> #include <vespa/vespalib/util/stringfmt.h> #include <algorithm> -#include <vespa/eval/eval/engine_or_factory.h> +#include <vespa/eval/eval/value_codec.h> #include <vespa/vespalib/objects/nbostream.h> #include <vespa/log/log.h> @@ -164,7 +164,7 @@ HitCollector::getFeatureSet(IRankProgram &rankProgram, auto obj = resolver.resolve(j).as_object(docId); if (! obj.get().is_double()) { vespalib::nbostream buf; - vespalib::eval::EngineOrFactory::get().encode(obj.get(), buf); + encode_value(obj.get(), buf); f[j].set_data(vespalib::Memory(buf.peek(), buf.size())); } else { f[j].set_double(obj.get().as_double()); |