diff options
author | Geir Storli <geirst@yahooinc.com> | 2022-09-13 11:24:10 +0000 |
---|---|---|
committer | Geir Storli <geirst@yahooinc.com> | 2022-09-13 12:32:36 +0000 |
commit | 65ecb02c12d3f87ee3839bdddd14ce969a40d7ce (patch) | |
tree | c193afa889d34108c88d7dcec7be4d54a5c58516 /config-model/src/test/java/com/yahoo/schema/processing/BoldingTestCase.java | |
parent | cf494ca75f3dc3bd66ef90a8438a20a5dd447452 (diff) |
Allow dynamic transforms on array<string> summary fields.
Diffstat (limited to 'config-model/src/test/java/com/yahoo/schema/processing/BoldingTestCase.java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/schema/processing/BoldingTestCase.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/config-model/src/test/java/com/yahoo/schema/processing/BoldingTestCase.java b/config-model/src/test/java/com/yahoo/schema/processing/BoldingTestCase.java index fe38ea1f1b1..7162cf7717b 100644 --- a/config-model/src/test/java/com/yahoo/schema/processing/BoldingTestCase.java +++ b/config-model/src/test/java/com/yahoo/schema/processing/BoldingTestCase.java @@ -39,10 +39,10 @@ public class BoldingTestCase extends AbstractSchemaTestCase { } } - private final String boldonarray = - "search boldonarray {\n" + - " document boldonarray {\n" + - " field myarray type array<string> {\n" + + private final String boldonwset = + "search test {\n" + + " document test {\n" + + " field mywset type weightedset<string> {\n" + " indexing: summary | index\n" + " bolding: on\n" + " }\n" + @@ -50,12 +50,12 @@ public class BoldingTestCase extends AbstractSchemaTestCase { "}\n"; @Test - void testBoldOnArray() throws ParseException { + void testBoldOnWsetThrowsException() throws ParseException { try { - ApplicationBuilder.createFromString(boldonarray); + ApplicationBuilder.createFromString(boldonwset); fail("Expected exception"); } catch (IllegalArgumentException e) { - assertEquals("'bolding: on' for non-text field 'myarray' (datatype Array<string> (code: -1486737430)) is not allowed", + assertEquals("'bolding: on' for non-text field 'mywset' (datatype WeightedSet<string> (code: 1328286588)) is not allowed", e.getMessage()); } } |