aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/imported_struct_fields/parent.sd
blob: 7c3b3fa28f5552c8f63f247a7a5dfa90b26a6708 (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
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema parent {
  document parent {
    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
      }
    }
    field elem_map type map<string, elem> {
      indexing: summary
      struct-field key {
        indexing: attribute
        attribute: fast-search
      }
      struct-field value.name {
        indexing: attribute
        attribute: fast-search
      }
      struct-field value.weight {
        indexing: attribute
      }
    }
    field str_int_map type map<string, int> {
      indexing: summary
      struct-field key {
        indexing: attribute
        attribute: fast-search
      }
      struct-field value {
        indexing: attribute
      }
    }
  }
}