diff options
author | Arne H Juul <arnej27959@users.noreply.github.com> | 2023-09-25 09:40:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-25 09:40:19 +0200 |
commit | 2f9bf822d9817a24ef070b7e69e3cbc429d43338 (patch) | |
tree | 9bbdcc358753c3de9a5d080dd3850362cc104156 /config-model/src/test/java/com/yahoo/schema/processing | |
parent | e0db4153b7698cbbf61253dbe6808748c89e539f (diff) | |
parent | 297b712e37a889b824f5b1ef241379d67d045ecd (diff) |
Merge pull request #28623 from vespa-engine/bratseth/dynamic-summary-ngram-fields
Bratseth/dynamic summary ngram fields
Diffstat (limited to 'config-model/src/test/java/com/yahoo/schema/processing')
-rw-r--r-- | config-model/src/test/java/com/yahoo/schema/processing/NGramTestCase.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config-model/src/test/java/com/yahoo/schema/processing/NGramTestCase.java b/config-model/src/test/java/com/yahoo/schema/processing/NGramTestCase.java index 06ea202b9c3..551542a84ba 100644 --- a/config-model/src/test/java/com/yahoo/schema/processing/NGramTestCase.java +++ b/config-model/src/test/java/com/yahoo/schema/processing/NGramTestCase.java @@ -27,15 +27,15 @@ public class NGramTestCase extends AbstractSchemaTestCase { SDField gram1 = schema.getConcreteField("gram_1"); assertEquals(MatchType.GRAM, gram1.getMatching().getType()); - assertEquals(1, gram1.getMatching().getGramSize()); + assertEquals(1, gram1.getMatching().getGramSize().getAsInt()); SDField gram2 = schema.getConcreteField("gram_2"); assertEquals(MatchType.GRAM, gram2.getMatching().getType()); - assertEquals(-1, gram2.getMatching().getGramSize()); // Not set explicitly + assertTrue(gram2.getMatching().getGramSize().isEmpty()); SDField gram3 = schema.getConcreteField("gram_3"); assertEquals(MatchType.GRAM, gram3.getMatching().getType()); - assertEquals(3, gram3.getMatching().getGramSize()); + assertEquals(3, gram3.getMatching().getGramSize().getAsInt()); assertEquals("input gram_1 | ngram 1 | index gram_1 | summary gram_1", gram1.getIndexingScript().iterator().next().toString()); assertEquals("input gram_2 | ngram 2 | attribute gram_2 | index gram_2", gram2.getIndexingScript().iterator().next().toString()); |