summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2020-11-06 16:26:57 +0000
committerGeir Storli <geirst@verizonmedia.com>2020-11-06 16:26:57 +0000
commit5ea0b4978a33735712c6c1976391e74ba021354c (patch)
tree68a77af2a6b6504898c2dc4c2797bac65c407a1d /searchlib
parent5fd120c003d93b1860bb5c5ce061e4240863a32a (diff)
Support using DirectTensorAttribute for both sparse and mixed tensors.
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;