diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-12-28 10:17:24 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-12-28 10:17:24 +0000 |
commit | 9d5e9acbcd220a148f8cbeeef6303c284c8fa2ab (patch) | |
tree | 8fb6124cec38f20e91ecfdbfe21593326e6213a4 /searchlib | |
parent | 6ec36135621b032ba1137d0d84ed41e84439780a (diff) |
tensor-type fields are not matchable, skip in setup
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/features/matchfeature.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/features/matchfeature.cpp b/searchlib/src/vespa/searchlib/features/matchfeature.cpp index f6843df1a2f..49c7aa89f84 100644 --- a/searchlib/src/vespa/searchlib/features/matchfeature.cpp +++ b/searchlib/src/vespa/searchlib/features/matchfeature.cpp @@ -67,6 +67,10 @@ MatchBlueprint::setup(const IIndexEnvironment & env, { for (uint32_t i = 0; i < env.getNumFields(); ++i) { const FieldInfo * info = env.getField(i); + if (info->get_data_type() == FieldInfo::DataType::TENSOR) { + // not matchable + continue; + } if ((info->type() == FieldType::INDEX) || (info->type() == FieldType::ATTRIBUTE)) { _params.weights.push_back(indexproperties::FieldWeight::lookup(env.getProperties(), info->name())); if (info->type() == FieldType::INDEX) { |