summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-10-15 11:17:51 +0000
committerArne Juul <arnej@verizonmedia.com>2020-10-15 11:22:19 +0000
commit1d0927e9658bcffdf1575decacfaf06da43d95c6 (patch)
tree8312138c9c3c274d0fe0debb7f6852bf89d5be49 /searchlib
parent4023419b26cb8f3f3a4cd9886596db2475d43ae3 (diff)
use qt_type again
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attribute_blueprint_factory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/attribute_blueprint_factory.cpp b/searchlib/src/vespa/searchlib/attribute/attribute_blueprint_factory.cpp
index b8110b4556d..95fde42724b 100644
--- a/searchlib/src/vespa/searchlib/attribute/attribute_blueprint_factory.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attribute_blueprint_factory.cpp
@@ -726,11 +726,11 @@ public:
const auto & qt_type = query_tensor->type();
if (! qt_type.is_dense()) {
return fail_nearest_neighbor_term(n, make_string("Query tensor is not a dense tensor (type=%s)",
- query_tensor->type().to_spec().c_str()));
+ qt_type.to_spec().c_str()));
}
if (!is_compatible_for_nearest_neighbor(dense_attr_tensor->getTensorType(), qt_type)) {
return fail_nearest_neighbor_term(n, make_string("Attribute tensor type (%s) and query tensor type (%s) are not compatible",
- dense_attr_tensor->getTensorType().to_spec().c_str(), query_tensor->type().to_spec().c_str()));
+ dense_attr_tensor->getTensorType().to_spec().c_str(), qt_type.to_spec().c_str()));
}
setResult(std::make_unique<queryeval::NearestNeighborBlueprint>(_field, *dense_attr_tensor,
std::move(query_tensor),