diff options
author | Tor Egge <Tor.Egge@online.no> | 2023-03-06 13:07:17 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2023-03-06 13:07:17 +0100 |
commit | 38ae7636a97d3d2731b711dfc0e43c3e43e686cb (patch) | |
tree | 20f63fd1f78913824a02946d6f6cdb0d43979852 | |
parent | d96e7c928a1c750a1c0e8657333cd1bb2b8245bf (diff) |
Add raw as attribute vector basic type.
4 files changed, 5 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/common/attributefieldvaluenode.cpp b/searchcore/src/vespa/searchcore/proton/common/attributefieldvaluenode.cpp index 7d9b1b3b06a..e412dabc7c1 100644 --- a/searchcore/src/vespa/searchcore/proton/common/attributefieldvaluenode.cpp +++ b/searchcore/src/vespa/searchcore/proton/common/attributefieldvaluenode.cpp @@ -83,6 +83,7 @@ getValue(const Context &context) const case BasicType::PREDICATE: case BasicType::TENSOR: case BasicType::REFERENCE: + case BasicType::RAW: throw IllegalArgumentException(make_string("Attribute '%s' of type '%s' can not be used for selection", v.getName().c_str(), BasicType(v.getBasicType()).asString())); case BasicType::MAX_TYPE: diff --git a/searchcore/src/vespa/searchcore/proton/common/cachedselect.cpp b/searchcore/src/vespa/searchcore/proton/common/cachedselect.cpp index c51771df265..2235f16ae94 100644 --- a/searchcore/src/vespa/searchcore/proton/common/cachedselect.cpp +++ b/searchcore/src/vespa/searchcore/proton/common/cachedselect.cpp @@ -65,7 +65,7 @@ AttrVisitor::AttrVisitor(const search::IAttributeManager &amgr, CachedSelect::At AttrVisitor::~AttrVisitor() = default; bool isSingleValueThatWeHandle(BasicType type) { - return (type != BasicType::PREDICATE) && (type != BasicType::TENSOR) && (type != BasicType::REFERENCE); + return (type != BasicType::PREDICATE) && (type != BasicType::TENSOR) && (type != BasicType::REFERENCE) && (type != BasicType::RAW); } void diff --git a/searchlib/src/vespa/searchcommon/attribute/basictype.cpp b/searchlib/src/vespa/searchcommon/attribute/basictype.cpp index d0d90d1c9d5..41221457400 100644 --- a/searchlib/src/vespa/searchcommon/attribute/basictype.cpp +++ b/searchlib/src/vespa/searchcommon/attribute/basictype.cpp @@ -19,7 +19,8 @@ const BasicType::TypeInfo BasicType::_typeTable[BasicType::MAX_TYPE] = { { BasicType::DOUBLE, sizeof(double), "double" }, { BasicType::PREDICATE, 0, "predicate" }, { BasicType::TENSOR, 0, "tensor" }, - { BasicType::REFERENCE, 12, "reference" } + { BasicType::REFERENCE, 12, "reference" }, + { BasicType::RAW, 0, "raw" } }; BasicType::Type diff --git a/searchlib/src/vespa/searchcommon/attribute/basictype.h b/searchlib/src/vespa/searchcommon/attribute/basictype.h index bd7b4a2b4bc..46387dd2738 100644 --- a/searchlib/src/vespa/searchcommon/attribute/basictype.h +++ b/searchlib/src/vespa/searchcommon/attribute/basictype.h @@ -24,6 +24,7 @@ class BasicType PREDICATE = 11, TENSOR = 12, REFERENCE = 13, + RAW = 14, MAX_TYPE }; |