aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/exactmatch/exactmatch.sd
blob: 8ebb209ca6d619ecebed9068c17d905322631337 (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
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema exactmatch {

  document exactmatch {

    struct elem {
      field name type string {}
      field weight type int {}
    }

    field tag type string {
      indexing: summary | index
      match: exact
    }

    field screweduserids type string {
      indexing: index | summary | attribute
      match {
        exact
        exact-terminator: "*!A!!*"
      }
    }

    field string_map type map<string, string> {
      indexing: summary
      struct-field key {
        indexing: attribute
        match {
          exact
          exact-terminator: "*!B!!*"
        }
      }
    }

    field elem_map type map<string, elem> {
      indexing: summary
      struct-field value.name {
        indexing: attribute
        match: exact
      }
    }

    field elem_array type array<elem> {
      indexing: summary
      struct-field name {
        indexing: attribute
        match: exact
      }
    }

    field another_map type map<string, elem> {
      struct-field value.name {
        indexing: attribute
        match {
          exact
          exact-terminator: "*!C!!*"
        }
      }
    }

  }
}