summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2020-11-06 17:30:44 +0100
committerGitHub <noreply@github.com>2020-11-06 17:30:44 +0100
commit846feef93e16dd971e15a4c98e391948d50b5d27 (patch)
tree1d934e1d599450d40a47b28e01996f70c524cbc8
parent03c5ce98a29d438b51c02e537d6e6ce31be09bc3 (diff)
parent5ea0b4978a33735712c6c1976391e74ba021354c (diff)
Merge pull request #15215 from vespa-engine/geirst/support-mixed-tensors-as-direct-2
Support using DirectTensorAttribute for both sparse and mixed tensors.
-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;