summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/createsinglefastsearch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/createsinglefastsearch.cpp b/searchlib/src/vespa/searchlib/attribute/createsinglefastsearch.cpp
index 06206ad517b..187eb01e9a9 100644
--- a/searchlib/src/vespa/searchlib/attribute/createsinglefastsearch.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/createsinglefastsearch.cpp
@@ -43,7 +43,7 @@ AttributeFactory::createSingleFastSearch(stringref name, const Config & info)
case BasicType::STRING:
return std::make_shared<SingleValueStringPostingAttribute>(name, info);
case BasicType::TENSOR:
- if (info.tensorType().is_sparse()) {
+ if (!info.tensorType().is_dense()) {
return std::make_shared<tensor::DirectTensorAttribute>(name, info);
}
break;