diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-01-28 12:06:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 12:06:37 +0100 |
commit | 3337963bf5e89f27be9cba0b9b92b4d6a6e75737 (patch) | |
tree | 2b91fae68c906abf86cf5695b6dcd3d3207f5434 /searchlib | |
parent | 4ecf28139f846c1c16dfdc085031445ee8bb5029 (diff) | |
parent | 2dba5d45094ef264532d56638418e703b297f3e0 (diff) |
Merge pull request #20973 from vespa-engine/arnej/just-fix-dist-feature
pick the right attribute for streaming
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/features/distancefeature.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/features/distancefeature.cpp b/searchlib/src/vespa/searchlib/features/distancefeature.cpp index d5a27d04216..518ade2a8f5 100644 --- a/searchlib/src/vespa/searchlib/features/distancefeature.cpp +++ b/searchlib/src/vespa/searchlib/features/distancefeature.cpp @@ -225,9 +225,10 @@ DistanceBlueprint::setup(const IIndexEnvironment & env, _attr_id = fi->id(); return setup_nns(env, arg); } - // could check if dt is DataType::INT64 // could check if ct is CollectionType::SINGLE or CollectionType::ARRAY) - return setup_geopos(env, arg); + if (dt == DataType::INT64) { + return setup_geopos(env, arg); + } } vespalib::string z = document::PositionDataType::getZCurveFieldName(arg); fi = env.getFieldByName(z); |