document_v5.0.0.json 7.13 KB
Newer Older
Carina Antunes's avatar
Carina Antunes committed
1
2
3
4
{
  "settings": {
    "index.percolator.map_unmapped_fields_as_text": true,
    "index.mapping.total_fields.limit": 500,
5
6
7
8
    "index.query.default_field": [
      "_data.*"
    ],
    "analysis": {
9
10
11
12
13
14
15
16
17
      "analyzer": {
        "case_accent_analyzer": {
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
        }
      },
18
      "normalizer": {
19
        "case_accent_normalizer": {
20
21
          "type": "custom",
          "filter": [
22
23
            "lowercase",
            "asciifolding"
24
25
26
27
          ]
        }
      }
    }
Carina Antunes's avatar
Carina Antunes committed
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
  },
  "mappings": {
    "dynamic": "strict",
    "numeric_detection": true,
    "properties": {
      "_access": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "keyword"
          },
          "read": {
            "type": "keyword"
          },
          "update": {
            "type": "keyword"
          },
          "delete": {
            "type": "keyword"
          }
        }
      },
      "_data": {
        "type": "object",
        "properties": {
          "document_id": {
            "type": "keyword",
55
            "normalizer": "case_accent_normalizer",
56
            "boost": 2
Carina Antunes's avatar
Carina Antunes committed
57
58
59
          },
          "document_id_version": {
            "type": "keyword",
60
            "normalizer": "case_accent_normalizer",
61
            "boost": 2
Carina Antunes's avatar
Carina Antunes committed
62
63
64
          },
          "cern_id": {
            "type": "keyword",
65
            "normalizer": "case_accent_normalizer",
66
            "boost": 2
Carina Antunes's avatar
Carina Antunes committed
67
68
69
          },
          "cern_id_version": {
            "type": "keyword",
70
            "normalizer": "case_accent_normalizer",
71
            "boost": 2
Carina Antunes's avatar
Carina Antunes committed
72
73
74
          },
          "external_reference": {
            "type": "text",
75
            "analyzer": "case_accent_analyzer",
76
            "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
77
78
79
            "fields": {
              "exact_match": {
                "type": "keyword",
80
                "normalizer": "case_accent_normalizer",
81
                "boost": 1.5
Carina Antunes's avatar
Carina Antunes committed
82
83
84
85
86
              }
            }
          },
          "version": {
            "type": "keyword",
87
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
88
89
90
          },
          "title": {
            "type": "text",
91
            "analyzer": "case_accent_analyzer",
92
            "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
93
94
95
            "fields": {
              "english": {
                "type": "text",
96
                "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
97
98
99
100
                "analyzer": "english"
              },
              "french": {
                "type": "text",
101
                "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
102
103
104
105
                "analyzer": "french"
              },
              "exact_match": {
                "type": "keyword",
106
                "normalizer": "case_accent_normalizer",
107
                "boost": 1.5
Carina Antunes's avatar
Carina Antunes committed
108
109
110
111
112
              }
            }
          },
          "description": {
            "type": "text",
113
            "analyzer": "case_accent_analyzer",
114
            "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
115
116
117
            "fields": {
              "english": {
                "type": "text",
118
                "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
119
120
121
122
                "analyzer": "english"
              },
              "french": {
                "type": "text",
123
                "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
124
125
126
127
128
129
130
131
132
                "analyzer": "french"
              }
            }
          },
          "author": {
            "type": "object",
            "properties": {
              "full_name": {
                "type": "text",
133
                "analyzer": "case_accent_analyzer",
134
                "boost": 1.2
Carina Antunes's avatar
Carina Antunes committed
135
136
137
              },
              "email": {
                "type": "text",
138
                "analyzer": "case_accent_analyzer",
139
                "boost": 1.2
Carina Antunes's avatar
Carina Antunes committed
140
141
142
143
144
              }
            }
          },
          "keywords": {
            "type": "text",
145
            "analyzer": "case_accent_analyzer",
146
            "boost": 1.4,
Carina Antunes's avatar
Carina Antunes committed
147
148
149
150
            "fields": {
              "english": {
                "type": "text",
                "analyzer": "english",
151
                "boost": 1.4
Carina Antunes's avatar
Carina Antunes committed
152
153
154
155
              },
              "french": {
                "type": "text",
                "analyzer": "french",
156
                "boost": 1.4
Carina Antunes's avatar
Carina Antunes committed
157
158
159
              },
              "exact_match": {
                "type": "keyword",
160
                "normalizer": "case_accent_normalizer",
161
                "boost": 1.4
Carina Antunes's avatar
Carina Antunes committed
162
163
164
165
166
              }
            }
          },
          "equipment_code": {
            "type": "keyword",
167
            "normalizer": "case_accent_normalizer",
168
            "boost": 1.4
Carina Antunes's avatar
Carina Antunes committed
169
170
171
172
          }
        }
      },
      "cid": {
173
        "type": "keyword",
174
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
175
176
      },
      "owner": {
177
        "type": "keyword",
178
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
179
180
      },
      "group": {
181
        "type": "keyword",
182
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
183
184
      },
      "object_type": {
185
        "type": "keyword",
186
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
187
188
189
190
191
      },
      "parents": {
        "type": "object",
        "properties": {
          "parent_type": {
192
            "type": "keyword",
193
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
194
195
          },
          "parent_id": {
196
            "type": "keyword",
197
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
198
199
200
201
          }
        }
      },
      "status": {
202
        "type": "keyword",
203
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
204
205
      },
      "latest_version": {
206
        "type": "keyword",
207
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
208
209
      },
      "obsolete": {
210
        "type": "keyword",
211
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
212
213
214
215
216
      },
      "context": {
        "type": "object",
        "properties": {
          "name": {
217
            "type": "keyword",
218
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
219
220
          },
          "context_id": {
221
            "type": "keyword",
222
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
223
224
225
226
          }
        }
      },
      "document_type": {
227
        "type": "keyword",
228
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
229
230
      },
      "release_procedure": {
231
        "type": "keyword",
232
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
233
234
235
236
      },
      "object_properties": {
        "properties": {
          "name": {
237
            "type": "keyword",
238
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
239
240
241
          },
          "value": {
            "type": "text",
242
            "analyzer": "case_accent_analyzer",
Carina Antunes's avatar
Carina Antunes committed
243
244
245
246
247
248
249
250
251
252
            "fields": {
              "english": {
                "type": "text",
                "analyzer": "english"
              },
              "french": {
                "type": "text",
                "analyzer": "french"
              },
              "exact_match": {
253
                "type": "keyword",
254
                "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
255
256
257
258
259
260
              }
            }
          }
        }
      },
      "attributes": {
261
        "type": "keyword",
262
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
      },
      "creation_date": {
        "type": "date",
        "format": "yyyy-MM-dd'T'HH:mm:ss"
      },
      "modification_date": {
        "type": "date",
        "format": "yyyy-MM-dd'T'HH:mm:ss"
      },
      "_updated": {
        "type": "date"
      },
      "_created": {
        "type": "date"
      },
      "control_number": {
        "type": "keyword"
      },
      "$schema": {
        "enabled": false
      }
    }
  }
}