aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/matchsettings_map_def/test.sd
blob: 1a48cce0f45f2f4c0674f4a2030cd99cb437748c (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
38
39
40
41
42
43
44
45
46
47
48
49
50
# 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 sf1s type string {}
      field sf2i type int {}
    }

    field mss3 type map<string,string> {
      indexing: index
      struct-field key {
        indexing: index
      }
      struct-field value {
        indexing: index
      }
    }

    field mse4 type map<string,elem> {
      indexing: summary
      struct-field key {
        indexing: index
      }
      struct-field value.sf1s {
        indexing: index
      }
      struct-field value.sf2i {
        indexing: attribute
      }
    }

    field mse5 type map<string,elem> {
      indexing: summary
      struct-field key {
        indexing: attribute
        attribute: fast-search
      }
      struct-field value.sf1s {
        indexing: attribute
      }
      struct-field value.sf2i {
        indexing: attribute
      }
    }

  }
}