aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/importedfields/child.sd
blob: d3be011f5fb430e89bcbb1f68bd4052f9a53f37e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema child {
  document child {
    field a_ref type reference<parent_a> {
        indexing: attribute
    }
    field b_ref type reference<parent_b> {
        indexing: attribute
    }
    field b_ref_with_summary type reference<parent_b> {
        indexing: attribute | summary
    }
  }
  import field a_ref.int_field as my_int_field {}
  import field b_ref.string_field as my_string_field {}
  import field a_ref.int_array_field as my_int_array_field {}
  import field a_ref.int_wset_field as my_int_wset_field {}
  import field a_ref.ancient_int_field as my_ancient_int_field {}

  fieldset myfieldset {
    fields: my_int_field, my_string_field, my_ancient_int_field
  }

  document-summary mysummary {
    summary a_ref {}
    summary b_ref_with_summary {}
    summary my_int_field {}
    summary my_string_field {}
    summary my_int_array_field {}
    summary my_int_wset_field {}
    summary my_ancient_int_field {}
    summary my_filtered_int_array_field {
      source: my_int_array_field
      matched-elements-only
    }
  }
}