file_v6.0.0.json 9.78 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
    "index.highlight.max_analyzed_offset": 10000000,
    "index.number_of_shards": 5,
    "index.max_ngram_diff": 100,
8
9
10
11
    "index.query.default_field": [
      "_data.*"
    ],
    "analysis": {
12
13
14
15
16
17
18
19
20
21
22
23
24
25
      "tokenizer": {
        "keyword_ngram": {
          "type": "ngram",
          "min_gram": 3,
          "max_gram": 50,
          "token_chars": [
            "letter",
            "digit",
            "whitespace",
            "punctuation",
            "symbol"
          ]
        }
      },
26
27
28
29
30
31
32
      "analyzer": {
        "case_accent_analyzer": {
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
33
34
35
36
37
38
39
40
41
42
43
44
45
46
        },
        "wildcard": {
          "tokenizer": "keyword_ngram",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
        },
        "lowercase_keyword_analyzer": {
          "tokenizer": "keyword",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
47
48
        }
      },
49
      "normalizer": {
50
        "case_accent_normalizer": {
51
52
          "type": "custom",
          "filter": [
53
54
            "lowercase",
            "asciifolding"
55
56
57
58
          ]
        }
      }
    }
Carina Antunes's avatar
Carina Antunes committed
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
  },
  "mappings": {
    "numeric_detection": true,
    "properties": {
      "_access": {
        "type": "object",
        "properties": {
          "owner": {
            "type": "keyword"
          },
          "read": {
            "type": "keyword"
          },
          "update": {
            "type": "keyword"
          },
          "delete": {
            "type": "keyword"
          }
        }
      },
      "_data": {
        "type": "object",
        "properties": {
83
84
          "content": {
            "type": "text",
85
            "analyzer": "case_accent_analyzer"
Carina Antunes's avatar
Carina Antunes committed
86
87
88
          },
          "file_name": {
            "type": "text",
89
90
            "analyzer": "case_accent_analyzer",
            "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
91
92
93
94
            "fields": {
              "english": {
                "type": "text",
                "analyzer": "english",
95
                "boost": 1.5
Carina Antunes's avatar
Carina Antunes committed
96
97
98
99
              },
              "french": {
                "type": "text",
                "analyzer": "french",
100
                "boost": 1.5
Carina Antunes's avatar
Carina Antunes committed
101
102
103
104
105
              }
            }
          },
          "document_id": {
            "type": "keyword",
106
107
            "normalizer": "case_accent_normalizer",
            "boost": 1.9
Carina Antunes's avatar
Carina Antunes committed
108
109
110
          },
          "document_id_version": {
            "type": "keyword",
111
112
            "normalizer": "case_accent_normalizer",
            "boost": 1.9
Carina Antunes's avatar
Carina Antunes committed
113
114
          },
          "cern_id": {
115
116
117
118
119
120
121
122
123
124
125
            "type": "text",
            "analyzer": "wildcard",
            "search_analyzer": "lowercase_keyword_analyzer",
            "boost": 1.9,
            "fields": {
              "exact_match": {
                "type": "keyword",
                "normalizer": "case_accent_normalizer",
                "boost": 1.9
              }
            }
Carina Antunes's avatar
Carina Antunes committed
126
127
128
          },
          "cern_id_version": {
            "type": "keyword",
129
130
            "normalizer": "case_accent_normalizer",
            "boost": 1.9
Carina Antunes's avatar
Carina Antunes committed
131
132
133
          },
          "external_reference": {
            "type": "text",
134
135
            "boost": 1.4,
            "analyzer": "case_accent_analyzer",
Carina Antunes's avatar
Carina Antunes committed
136
137
138
            "fields": {
              "exact_match": {
                "type": "keyword",
139
140
                "normalizer": "case_accent_normalizer",
                "boost": 1.4
Carina Antunes's avatar
Carina Antunes committed
141
142
143
144
145
              }
            }
          },
          "version": {
            "type": "keyword",
146
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
147
148
149
          },
          "title": {
            "type": "text",
150
151
            "analyzer": "case_accent_analyzer",
            "boost": 1.4,
Carina Antunes's avatar
Carina Antunes committed
152
153
154
            "fields": {
              "english": {
                "type": "text",
155
                "boost": 1.4,
Carina Antunes's avatar
Carina Antunes committed
156
157
158
159
                "analyzer": "english"
              },
              "french": {
                "type": "text",
160
                "boost": 1.4,
Carina Antunes's avatar
Carina Antunes committed
161
162
163
164
                "analyzer": "french"
              },
              "exact_match": {
                "type": "keyword",
165
166
                "normalizer": "case_accent_normalizer",
                "boost": 1.4
167
168
169
170
171
172
              },
              "wildcard": {
                "type": "text",
                "analyzer": "wildcard",
                "search_analyzer": "lowercase_keyword_analyzer",
                "boost": 1.4
Carina Antunes's avatar
Carina Antunes committed
173
174
175
176
177
              }
            }
          },
          "description": {
            "type": "text",
178
179
            "analyzer": "case_accent_analyzer",
            "boost": 1.2,
Carina Antunes's avatar
Carina Antunes committed
180
181
182
            "fields": {
              "english": {
                "type": "text",
183
                "boost": 1.2,
Carina Antunes's avatar
Carina Antunes committed
184
185
186
187
                "analyzer": "english"
              },
              "french": {
                "type": "text",
188
                "boost": 1.2,
Carina Antunes's avatar
Carina Antunes committed
189
                "analyzer": "french"
190
191
192
193
194
195
              },
              "wildcard": {
                "type": "text",
                "analyzer": "wildcard",
                "search_analyzer": "lowercase_keyword_analyzer",
                "boost": 1.2
Carina Antunes's avatar
Carina Antunes committed
196
197
198
199
200
201
202
203
              }
            }
          },
          "author": {
            "type": "object",
            "properties": {
              "full_name": {
                "type": "text",
204
205
                "analyzer": "case_accent_analyzer",
                "boost": 1.15
Carina Antunes's avatar
Carina Antunes committed
206
207
208
              },
              "email": {
                "type": "text",
209
210
                "analyzer": "case_accent_analyzer",
                "boost": 1.15
211
212
213
214
215
216
              },
              "wildcard": {
                "type": "text",
                "analyzer": "wildcard",
                "search_analyzer": "lowercase_keyword_analyzer",
                "boost": 1.15
Carina Antunes's avatar
Carina Antunes committed
217
218
219
220
221
              }
            }
          },
          "keywords": {
            "type": "text",
222
223
            "analyzer": "case_accent_analyzer",
            "boost": 1.3,
Carina Antunes's avatar
Carina Antunes committed
224
225
226
227
            "fields": {
              "english": {
                "type": "text",
                "analyzer": "english",
228
                "boost": 1.3
Carina Antunes's avatar
Carina Antunes committed
229
230
231
232
              },
              "french": {
                "type": "text",
                "analyzer": "french",
233
                "boost": 1.3
Carina Antunes's avatar
Carina Antunes committed
234
235
236
              },
              "exact_match": {
                "type": "keyword",
237
238
                "boost": 1.3,
                "normalizer": "case_accent_normalizer"
239
240
241
242
243
244
              },
              "wildcard": {
                "type": "text",
                "analyzer": "wildcard",
                "search_analyzer": "lowercase_keyword_analyzer",
                "boost": 1.3
Carina Antunes's avatar
Carina Antunes committed
245
246
247
248
249
              }
            }
          },
          "equipment_code": {
            "type": "keyword",
250
251
            "normalizer": "case_accent_normalizer",
            "boost": 1.3
Carina Antunes's avatar
Carina Antunes committed
252
253
254
255
          }
        }
      },
      "file_cid": {
256
        "type": "keyword",
257
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
258
259
      },
      "cid": {
260
        "type": "keyword",
261
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
262
263
      },
      "owner": {
264
        "type": "keyword",
265
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
266
267
      },
      "group": {
268
        "type": "keyword",
269
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
270
271
      },
      "object_type": {
272
        "type": "keyword",
273
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
274
275
276
277
278
      },
      "parents": {
        "type": "object",
        "properties": {
          "parent_type": {
279
            "type": "keyword",
280
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
281
282
          },
          "parent_id": {
283
            "type": "keyword",
284
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
285
286
287
288
          }
        }
      },
      "status": {
289
        "type": "keyword",
290
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
291
292
      },
      "latest_version": {
293
        "type": "keyword",
294
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
295
296
      },
      "obsolete": {
297
        "type": "keyword",
298
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
299
300
301
302
303
      },
      "context": {
        "type": "object",
        "properties": {
          "name": {
304
            "type": "keyword",
305
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
306
307
          },
          "context_id": {
308
            "type": "keyword",
309
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
310
311
312
313
          }
        }
      },
      "document_type": {
314
        "type": "keyword",
315
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
316
317
      },
      "release_procedure": {
318
        "type": "keyword",
319
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
320
321
322
323
      },
      "object_properties": {
        "properties": {
          "name": {
324
            "type": "keyword",
325
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
326
327
328
          },
          "value": {
            "type": "text",
329
            "analyzer": "case_accent_analyzer",
Carina Antunes's avatar
Carina Antunes committed
330
331
332
333
334
335
336
337
338
339
            "fields": {
              "english": {
                "type": "text",
                "analyzer": "english"
              },
              "french": {
                "type": "text",
                "analyzer": "french"
              },
              "exact_match": {
340
                "type": "keyword",
341
                "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
342
343
344
345
346
347
              }
            }
          }
        }
      },
      "attributes": {
348
        "type": "keyword",
349
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
      },
      "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"
      },
      "_bucket": {
        "enabled": false
      },
      "_bucket_content": {
        "type": "keyword"
      },
371
      "file": {
Carina Antunes's avatar
Carina Antunes committed
372
373
        "type": "keyword"
      },
374
      "url": {
Carina Antunes's avatar
Carina Antunes committed
375
376
377
378
379
380
381
382
383
384
385
        "type": "keyword"
      },
      "control_number": {
        "type": "keyword"
      },
      "$schema": {
        "enabled": false
      }
    }
  }
}