summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/array_of_struct_attribute/test.sd
blob: 2846c3be13d95d053ddcd48197f6af9c19cea7e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
search 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
      }
    }
  }
}