summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/features/prod_features_attributematch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/tests/features/prod_features_attributematch.cpp')
-rw-r--r--searchlib/src/tests/features/prod_features_attributematch.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/searchlib/src/tests/features/prod_features_attributematch.cpp b/searchlib/src/tests/features/prod_features_attributematch.cpp
index 8dcceec9a22..4ddb3170efe 100644
--- a/searchlib/src/tests/features/prod_features_attributematch.cpp
+++ b/searchlib/src/tests/features/prod_features_attributematch.cpp
@@ -18,6 +18,7 @@ using AVC = search::attribute::Config;
using AVBT = search::attribute::BasicType;
using AVCT = search::attribute::CollectionType;
using CollectionType = FieldInfo::CollectionType;
+using DataType = FieldInfo::DataType;
void
Test::testAttributeMatch()
@@ -303,4 +304,10 @@ Test::testAttributeMatch()
addScore("attributeMatch(wint).fieldCompleteness", 0);
ASSERT_TRUE(ft.execute(exp));
}
+ { // tensor attribute is not allowed
+ FtFeatureTest ft(_factory, "attributeMatch(tensor)");
+ ft.getIndexEnv().getBuilder().addField(FieldType::ATTRIBUTE, CollectionType::SINGLE, DataType::TENSOR, "tensor");
+ ASSERT_TRUE(ft.getQueryEnv().getBuilder().addAttributeNode("tensor") != nullptr);
+ ASSERT_TRUE(!ft.setup());
+ }
}