aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/inheritstruct/child.sd
blob: b55c91c949c5391e2400489235f0f95f300242f5 (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 Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema child {
    document child inherits parent {
      struct other_struct inherits my_struct {
        field my_int type int {}
      }
      struct wrapper {
        field wrapped type my_struct {}
      }

      field child_struct_field type my_struct {
        indexing: summary | index
        match: prefix
      }
      field other_field type other_struct {
        indexing: summary
      }
      field wrapped_field type wrapper {
        indexing: summary
      }
    }
}