record-sets.template.json 2.4 KB
Newer Older
Jonas Waeber's avatar
Jonas Waeber committed
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
{
  "index_patterns": [
    "record-sets*"
  ],
  "settings": {
    "number_of_replicas": 1,
    "number_of_shards": 3
  },
  "mappings": {
    "date_detection": false,
    "dynamic_templates": [
      {
        "filter_as_keyword": {
          "path_match": "*.filter",
          "mapping": {
            "type": "keyword"
          }
        }
      },
      {
        "facet_as_keyword": {
          "path_match": "*.facet",
          "mapping": {
            "type": "keyword"
          }
        }
      },
Jonas Waeber's avatar
Jonas Waeber committed
28
29
30
31
32
33
34
35
36
37
38
39
      {
        "add_sort_field_to_name": {
          "path_match": "name.*",
          "mapping": {
            "fields": {
              "sort": {
                "type": "keyword"
              }
            }
          }
        }
      },
Jonas Waeber's avatar
Jonas Waeber committed
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
      {
        "german_fields": {
          "path_match": "*.de",
          "mapping": {
            "type": "text",
            "fields": {
              "filter": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          }
        }
      },
      {
        "french_fields": {
          "path_match": "*.fr",
          "mapping": {
            "type": "text",
            "fields": {
              "filter": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          }
        }
      },
      {
        "italian_fields": {
          "path_match": "*.it",
          "mapping": {
            "type": "text",
            "fields": {
              "filter": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          }
        }
      },
      {
        "unknown_language_fields": {
          "path_match": "*.un",
          "mapping": {
            "type": "text",
            "fields": {
              "filter": {
                "type": "keyword",
                "ignore_above": 256
              }
            }
          }
        }
      }
    ],
    "properties": {
      "id": {
        "type": "keyword"
      },
      "published": {
        "type": "boolean"
      },
Jonas Waeber's avatar
Jonas Waeber committed
104
105
106
      "keyVisualLink": {
        "type": "keyword"
      },
Jonas Waeber's avatar
Jonas Waeber committed
107
108
109
110
      "supportedByMemoriav": {
        "type": "boolean"
      },
      "periodOfTimeAsYear": {
111
        "type": "integer_range"
Jonas Waeber's avatar
Jonas Waeber committed
112
113
114
115
116
117
118
119
      },
      "lastUpdatedDate": {
        "type": "keyword",
        "fields": {
          "sort": {
            "type": "date"
          }
        }
Jonas Waeber's avatar
Jonas Waeber committed
120
121
122
123
      }
    }
  }
}