summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-12-28 10:17:24 +0000
committerArne Juul <arnej@verizonmedia.com>2020-12-28 10:17:24 +0000
commit9d5e9acbcd220a148f8cbeeef6303c284c8fa2ab (patch)
tree8fb6124cec38f20e91ecfdbfe21593326e6213a4 /searchlib
parent6ec36135621b032ba1137d0d84ed41e84439780a (diff)
tensor-type fields are not matchable, skip in setup
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/features/matchfeature.cpp4
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) {