summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/index/doctypebuilder.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/index/doctypebuilder.cpp b/searchlib/src/vespa/searchlib/index/doctypebuilder.cpp
index 836d16825f5..aabb2f3c296 100644
--- a/searchlib/src/vespa/searchlib/index/doctypebuilder.cpp
+++ b/searchlib/src/vespa/searchlib/index/doctypebuilder.cpp
@@ -2,6 +2,7 @@
#include "doctypebuilder.h"
#include <vespa/document/datatype/urldatatype.h>
+#include <vespa/document/datatype/tensor_data_type.h>
#include <vespa/document/repo/configbuilder.h>
using namespace document;
@@ -9,6 +10,8 @@ using namespace document;
namespace search::index {
namespace {
+TensorDataType tensorDataType;
+
const DataType *convert(Schema::DataType type) {
switch (type) {
case schema::DataType::BOOL:
@@ -33,7 +36,7 @@ const DataType *convert(Schema::DataType type) {
case schema::DataType::BOOLEANTREE:
return DataType::PREDICATE;
case schema::DataType::TENSOR:
- return DataType::TENSOR;
+ return &tensorDataType;
default:
break;
}