diff options
author | Jon Bratseth <jonbratseth@yahoo.com> | 2017-01-12 21:48:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-12 21:48:54 +0100 |
commit | c10677061733478b8e4028fafc68f05972877643 (patch) | |
tree | fd8ea0f55ec4a17feff93139238a435ddf7715ac /config-model/src/test/java/com/yahoo/searchdefinition/RankProfileTestCase.java | |
parent | 08fbcebedf2c2bd78c13727fb91cc25b9b196c2f (diff) |
Revert "Bratseth/tensor type info in documents"
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.java | 8 |
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 b2968eb4a85..ae3b775f13d 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(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" + + " 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" + " }\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()); - assertEquals("tensor(x[])", findProperty(rawProfile.configProperties(), "vespa.type.attribute.c").get()); + assertFalse(findProperty(rawProfile.configProperties(), "vespa.type.attribute.c").isPresent()); } @Test |