aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/streamingstructdefault/streamingstructdefault.sd
blob: ecb7a177775a9d01f850661d434c8444c5dc8473 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema streamingstructdefault {
  document streamingstructdefault {
    struct sct {
      field s1 type string {}
      field s2 type string {}
    }
    field f1 type array<string> {
      indexing: index | summary
      summary-to: default
    }
    field f2 type array<sct> {
      indexing: index | summary
    }
  }
  document-summary default {
    summary sum1 type string {
      source: f1, f2.s1
      dynamic
    }
  }
}