aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/array_of_struct_attribute/test.sd
blob: 969dba96bf86fab59dcfc9c7d2cc8619a9d71b66 (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 test {
  document test {
    struct elem {
      field name type string {}
      field weight type int {}
    }
    field elem_array type array<elem> {
      indexing: summary
      struct-field name {
        indexing: attribute
        attribute: fast-search
      }
      struct-field weight {
        indexing: attribute
      }
    }
  }
  document-summary rename {
    summary new_elem_array type array<elem> { source: elem_array }
  }
}