document_v5.0.0.json 9.11 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
    "index.number_of_shards": 5,
    "index.max_ngram_diff": 100,
7
8
9
10
    "index.query.default_field": [
      "_data.*"
    ],
    "analysis": {
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
      "tokenizer": {
        "keyword_edge_ngram": {
          "type": "edge_ngram",
          "min_gram": 2,
          "max_gram": 100,
          "token_chars": [
            "letter",
            "digit",
            "whitespace",
            "punctuation",
            "symbol"
          ]
        },
        "keyword_ngram": {
          "type": "ngram",
          "min_gram": 3,
          "max_gram": 50,
          "token_chars": [
            "letter",
            "digit",
            "whitespace",
            "punctuation",
            "symbol"
          ]
        }
      },
37
38
39
40
41
42
43
      "analyzer": {
        "case_accent_analyzer": {
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
        },
        "wildcard_edge": {
          "tokenizer": "keyword_edge_ngram",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
        },
        "wildcard": {
          "tokenizer": "keyword_ngram",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
        },
        "lowercase_keyword_analyzer": {
          "tokenizer": "keyword",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
65
66
        }
      },
67
      "normalizer": {
68
        "case_accent_normalizer": {
69
70
          "type": "custom",
          "filter": [
71
72
            "lowercase",
            "asciifolding"
73
74
75
76
          ]
        }
      }
    }
Carina Antunes's avatar
Carina Antunes committed
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
  },
  "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",
104
            "normalizer": "case_accent_normalizer",
Carina Antunes's avatar
Carina Antunes committed
105
            "boost": 5
Carina Antunes's avatar
Carina Antunes committed
106
107
108
          },
          "document_id_version": {
            "type": "keyword",
109
            "normalizer": "case_accent_normalizer",
Carina Antunes's avatar
Carina Antunes committed
110
            "boost": 5
Carina Antunes's avatar
Carina Antunes committed
111
112
          },
          "cern_id": {
113
114
115
            "type": "text",
            "analyzer": "wildcard",
            "search_analyzer": "lowercase_keyword_analyzer",
Carina Antunes's avatar
Carina Antunes committed
116
            "boost": 5
Carina Antunes's avatar
Carina Antunes committed
117
118
119
          },
          "cern_id_version": {
            "type": "keyword",
120
            "normalizer": "case_accent_normalizer",
Carina Antunes's avatar
Carina Antunes committed
121
            "boost": 5
Carina Antunes's avatar
Carina Antunes committed
122
123
124
          },
          "external_reference": {
            "type": "text",
125
            "analyzer": "case_accent_analyzer",
126
            "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
127
128
129
            "fields": {
              "exact_match": {
                "type": "keyword",
130
                "normalizer": "case_accent_normalizer",
131
                "boost": 1.5
Carina Antunes's avatar
Carina Antunes committed
132
133
134
135
136
              }
            }
          },
          "version": {
            "type": "keyword",
137
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
138
139
140
          },
          "title": {
            "type": "text",
141
            "analyzer": "case_accent_analyzer",
142
            "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
143
144
145
            "fields": {
              "english": {
                "type": "text",
146
                "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
147
148
149
150
                "analyzer": "english"
              },
              "french": {
                "type": "text",
151
                "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
152
153
154
155
                "analyzer": "french"
              },
              "exact_match": {
                "type": "keyword",
156
                "normalizer": "case_accent_normalizer",
157
                "boost": 1.5
158
159
160
161
162
163
              },
              "wildcard": {
                "type": "text",
                "analyzer": "wildcard",
                "search_analyzer": "lowercase_keyword_analyzer",
                "boost": 1.5
Carina Antunes's avatar
Carina Antunes committed
164
165
166
167
168
              }
            }
          },
          "description": {
            "type": "text",
169
            "analyzer": "case_accent_analyzer",
170
            "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
171
172
173
            "fields": {
              "english": {
                "type": "text",
174
                "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
175
176
177
178
                "analyzer": "english"
              },
              "french": {
                "type": "text",
179
                "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
180
                "analyzer": "french"
181
182
183
184
185
186
              },
              "wildcard": {
                "type": "text",
                "analyzer": "wildcard",
                "search_analyzer": "lowercase_keyword_analyzer",
                "boost": 1.25
Carina Antunes's avatar
Carina Antunes committed
187
188
189
190
191
192
193
194
              }
            }
          },
          "author": {
            "type": "object",
            "properties": {
              "full_name": {
                "type": "text",
195
                "analyzer": "case_accent_analyzer",
196
                "boost": 1.2
Carina Antunes's avatar
Carina Antunes committed
197
              },
198
199
200
201
202
203
              "wildcard": {
                "type": "text",
                "analyzer": "wildcard",
                "search_analyzer": "lowercase_keyword_analyzer",
                "boost": 1.2
              },
Carina Antunes's avatar
Carina Antunes committed
204
205
              "email": {
                "type": "text",
206
                "analyzer": "case_accent_analyzer",
207
                "boost": 1.2
Carina Antunes's avatar
Carina Antunes committed
208
209
210
211
212
              }
            }
          },
          "keywords": {
            "type": "text",
213
            "analyzer": "case_accent_analyzer",
214
            "boost": 1.4,
Carina Antunes's avatar
Carina Antunes committed
215
216
217
218
            "fields": {
              "english": {
                "type": "text",
                "analyzer": "english",
219
                "boost": 1.4
Carina Antunes's avatar
Carina Antunes committed
220
221
222
223
              },
              "french": {
                "type": "text",
                "analyzer": "french",
224
                "boost": 1.4
Carina Antunes's avatar
Carina Antunes committed
225
226
227
              },
              "exact_match": {
                "type": "keyword",
228
                "normalizer": "case_accent_normalizer",
229
                "boost": 1.4
230
231
232
233
234
235
              },
              "wildcard": {
                "type": "text",
                "analyzer": "wildcard",
                "search_analyzer": "lowercase_keyword_analyzer",
                "boost": 1.5
Carina Antunes's avatar
Carina Antunes committed
236
237
238
239
240
              }
            }
          },
          "equipment_code": {
            "type": "keyword",
241
            "normalizer": "case_accent_normalizer",
242
            "boost": 1.4
Carina Antunes's avatar
Carina Antunes committed
243
244
245
246
          }
        }
      },
      "cid": {
247
        "type": "keyword",
248
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
249
250
      },
      "owner": {
251
        "type": "keyword",
252
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
253
254
      },
      "group": {
255
        "type": "keyword",
256
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
257
258
      },
      "object_type": {
259
        "type": "keyword",
260
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
261
262
263
264
265
      },
      "parents": {
        "type": "object",
        "properties": {
          "parent_type": {
266
            "type": "keyword",
267
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
268
269
          },
          "parent_id": {
270
            "type": "keyword",
271
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
272
273
274
275
          }
        }
      },
      "status": {
276
        "type": "keyword",
277
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
278
279
      },
      "latest_version": {
280
        "type": "keyword",
281
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
282
283
      },
      "obsolete": {
284
        "type": "keyword",
285
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
286
287
288
289
290
      },
      "context": {
        "type": "object",
        "properties": {
          "name": {
291
            "type": "keyword",
292
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
293
294
          },
          "context_id": {
295
            "type": "keyword",
296
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
297
298
299
300
          }
        }
      },
      "document_type": {
301
        "type": "keyword",
302
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
303
304
      },
      "release_procedure": {
305
        "type": "keyword",
306
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
307
308
309
310
      },
      "object_properties": {
        "properties": {
          "name": {
311
            "type": "keyword",
312
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
313
314
315
          },
          "value": {
            "type": "text",
316
            "analyzer": "case_accent_analyzer",
Carina Antunes's avatar
Carina Antunes committed
317
318
319
320
321
322
323
324
325
326
            "fields": {
              "english": {
                "type": "text",
                "analyzer": "english"
              },
              "french": {
                "type": "text",
                "analyzer": "french"
              },
              "exact_match": {
327
                "type": "keyword",
328
                "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
329
330
331
332
333
334
              }
            }
          }
        }
      },
      "attributes": {
335
        "type": "keyword",
336
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
      },
      "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
      }
    }
  }
}