summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/java/com/yahoo/searchdefinition/RankProfileTestCase.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2017-01-12 11:33:39 +0100
committerJon Bratseth <bratseth@yahoo-inc.com>2017-01-12 11:33:39 +0100
commitfd4b4f5bf5169430ce7394b46d7392f391ef1afc (patch)
treeb715f7113ca7f1c1f631bbf60ed887e53f1f31cf /config-model/src/test/java/com/yahoo/searchdefinition/RankProfileTestCase.java
parent0e2f505ce41a5c277f74c6a0f7714c66ddd9a552 (diff)
Tensor type information in tensor document fields
Diffstat (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/RankProfileTestCase.java')
-rw-r--r--config-model/src/test/java/com/yahoo/searchdefinition/RankProfileTestCase.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/RankProfileTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/RankProfileTestCase.java
index ae3b775f13d..b2968eb4a85 100644
--- a/config-model/src/test/java/com/yahoo/searchdefinition/RankProfileTestCase.java
+++ b/config-model/src/test/java/com/yahoo/searchdefinition/RankProfileTestCase.java
@@ -102,9 +102,9 @@ public class RankProfileTestCase extends SearchDefinitionTestCase {
SearchBuilder builder = new SearchBuilder(registry);
builder.importString("search test {\n" +
" document test { \n" +
- " field a type tensor { indexing: attribute \n attribute: tensor(x[10]) }\n" +
- " field b type tensor { indexing: attribute \n attribute: tensor(y{}) }\n" +
- " field c type tensor { indexing: attribute }\n" +
+ " field a type tensor(x[]) { indexing: attribute \n attribute: tensor(x[10]) }\n" +
+ " field b type tensor(y{}) { indexing: attribute \n attribute: tensor(y{}) }\n" +
+ " field c type tensor(x[]) { indexing: attribute }\n" +
" }\n" +
" rank-profile p1 {}\n" +
" rank-profile p2 {}\n" +
@@ -123,7 +123,7 @@ public class RankProfileTestCase extends SearchDefinitionTestCase {
RawRankProfile rawProfile = new RawRankProfile(profile, new AttributeFields(search));
assertEquals("tensor(x[10])", findProperty(rawProfile.configProperties(), "vespa.type.attribute.a").get());
assertEquals("tensor(y{})", findProperty(rawProfile.configProperties(), "vespa.type.attribute.b").get());
- assertFalse(findProperty(rawProfile.configProperties(), "vespa.type.attribute.c").isPresent());
+ assertEquals("tensor(x[])", findProperty(rawProfile.configProperties(), "vespa.type.attribute.c").get());
}
@Test