summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/map_of_struct_attribute/test.sd
blob: cb2eac4ed7808209c9d357f3a1beddf9f85567db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
search test {
  document test {
    struct elem {
      field name type string {}
      field weight type int {}
    }
    field elem_map type map<string,elem> {
      indexing: summary
      struct-field key {
        indexing: attribute
      }
      struct-field value.name {
        indexing: attribute
      }
      struct-field value.weight {
        indexing: attribute
      }
    }
  }
}