item_v1.0.0.json 5.38 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
    "index.max_ngram_diff": 100,
6
7
8
9
    "index.query.default_field": [
      "_data.*"
    ],
    "analysis": {
10
11
12
13
14
15
16
17
18
19
20
21
22
23
      "tokenizer": {
        "keyword_ngram": {
          "type": "ngram",
          "min_gram": 3,
          "max_gram": 50,
          "token_chars": [
            "letter",
            "digit",
            "whitespace",
            "punctuation",
            "symbol"
          ]
        }
      },
24
25
26
27
28
29
30
      "analyzer": {
        "case_accent_analyzer": {
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
31
32
33
34
35
36
37
38
39
40
41
42
43
44
        },
        "wildcard": {
          "tokenizer": "keyword_ngram",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
        },
        "lowercase_keyword_analyzer": {
          "tokenizer": "keyword",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
45
46
        }
      },
47
      "normalizer": {
48
        "case_accent_normalizer": {
49
50
          "type": "custom",
          "filter": [
51
52
            "lowercase",
            "asciifolding"
53
54
55
56
          ]
        }
      }
    }
Carina Antunes's avatar
Carina Antunes committed
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
  },
  "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": {
          "item_id": {
82
83
84
85
86
87
88
89
90
91
92
            "type": "text",
            "analyzer": "wildcard",
            "search_analyzer": "lowercase_keyword_analyzer",
            "boost": 2,
            "fields": {
              "exact_match": {
                "type": "keyword",
                "normalizer": "case_accent_normalizer",
                "boost": 2
              }
            }
Carina Antunes's avatar
Carina Antunes committed
93
94
95
          },
          "version": {
            "type": "keyword",
96
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
97
98
99
          },
          "item_id_version": {
            "type": "keyword",
100
            "normalizer": "case_accent_normalizer",
101
            "boost": 2
Carina Antunes's avatar
Carina Antunes committed
102
103
104
          },
          "name": {
            "type": "text",
105
            "analyzer": "case_accent_analyzer",
106
            "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
107
108
109
            "fields": {
              "english": {
                "type": "text",
110
                "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
111
112
113
114
                "analyzer": "english"
              },
              "french": {
                "type": "text",
115
                "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
116
117
118
119
                "analyzer": "french"
              },
              "exact_match": {
                "type": "keyword",
120
                "normalizer": "case_accent_normalizer",
121
                "boost": 1.5
Carina Antunes's avatar
Carina Antunes committed
122
123
124
125
126
              }
            }
          },
          "description": {
            "type": "text",
127
            "analyzer": "case_accent_analyzer",
128
            "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
129
130
131
            "fields": {
              "english": {
                "type": "text",
132
                "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
133
134
135
136
                "analyzer": "english"
              },
              "french": {
                "type": "text",
137
                "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
138
139
140
141
142
143
                "analyzer": "french"
              }
            }
          },
          "equipment_code": {
            "type": "keyword",
144
            "normalizer": "case_accent_normalizer",
145
            "boost": 1.6
Carina Antunes's avatar
Carina Antunes committed
146
147
148
149
150
          },
          "context": {
            "type": "object",
            "properties": {
              "name": {
151
                "type": "keyword",
152
                "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
153
154
              },
              "context_id": {
155
                "type": "keyword",
156
                "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
157
158
159
160
161
162
              }
            }
          }
        }
      },
      "cid": {
163
        "type": "keyword",
164
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
165
166
      },
      "owner": {
167
        "type": "keyword",
168
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
169
170
      },
      "group": {
171
        "type": "keyword",
172
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
173
174
      },
      "object_type": {
175
        "type": "keyword",
176
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
177
178
      },
      "status": {
179
        "type": "keyword",
180
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
181
182
      },
      "latest_version": {
183
        "type": "keyword",
184
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
185
186
      },
      "obsolete": {
187
        "type": "keyword",
188
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
189
190
      },
      "release_procedure": {
191
        "type": "keyword",
192
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
      },
      "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
      }
    }
  }
}