diff options
Diffstat (limited to 'config-model/src/test/java/com/yahoo/schema/processing/IndexingOutputsTestCase.java')
-rw-r--r-- | config-model/src/test/java/com/yahoo/schema/processing/IndexingOutputsTestCase.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/config-model/src/test/java/com/yahoo/schema/processing/IndexingOutputsTestCase.java b/config-model/src/test/java/com/yahoo/schema/processing/IndexingOutputsTestCase.java index 58956b89a07..76680f4ce9a 100644 --- a/config-model/src/test/java/com/yahoo/schema/processing/IndexingOutputsTestCase.java +++ b/config-model/src/test/java/com/yahoo/schema/processing/IndexingOutputsTestCase.java @@ -62,4 +62,23 @@ public class IndexingOutputsTestCase { } } + @Test + void requireThatSummaryFieldSourceIsPopulated() throws ParseException { + var sd = """ + search renamed { + document renamed { + field foo type string { } + } + field bar type string { + indexing: input foo | summary + summary baz { } + summary dyn_baz { dynamic } + } + } + """; + var builder = ApplicationBuilder.createFromString(sd); + var schema = builder.getSchema(); + assertEquals("{ input foo | summary baz | summary dyn_baz | summary bar; }", + schema.getConcreteField("bar").getIndexingScript().toString()); + } } |