item_v1.0.0.json 4.45 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
  },
  "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": {
            "type": "keyword",
54
            "normalizer": "case_accent_normalizer",
55
            "boost": 2
Carina Antunes's avatar
Carina Antunes committed
56
57
58
          },
          "version": {
            "type": "keyword",
59
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
60
61
62
          },
          "item_id_version": {
            "type": "keyword",
63
            "normalizer": "case_accent_normalizer",
64
            "boost": 2
Carina Antunes's avatar
Carina Antunes committed
65
66
67
          },
          "name": {
            "type": "text",
68
            "analyzer": "case_accent_analyzer",
69
            "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
70
71
72
            "fields": {
              "english": {
                "type": "text",
73
                "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
74
75
76
77
                "analyzer": "english"
              },
              "french": {
                "type": "text",
78
                "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
79
80
81
82
                "analyzer": "french"
              },
              "exact_match": {
                "type": "keyword",
83
                "normalizer": "case_accent_normalizer",
84
                "boost": 1.5
Carina Antunes's avatar
Carina Antunes committed
85
86
87
88
89
              }
            }
          },
          "description": {
            "type": "text",
90
            "analyzer": "case_accent_analyzer",
91
            "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
92
93
94
            "fields": {
              "english": {
                "type": "text",
95
                "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
96
97
98
99
                "analyzer": "english"
              },
              "french": {
                "type": "text",
100
                "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
101
102
103
104
105
106
                "analyzer": "french"
              }
            }
          },
          "equipment_code": {
            "type": "keyword",
107
            "normalizer": "case_accent_normalizer",
108
            "boost": 1.6
Carina Antunes's avatar
Carina Antunes committed
109
110
111
112
113
          },
          "context": {
            "type": "object",
            "properties": {
              "name": {
114
                "type": "keyword",
115
                "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
116
117
              },
              "context_id": {
118
                "type": "keyword",
119
                "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
120
121
122
123
124
125
              }
            }
          }
        }
      },
      "cid": {
126
        "type": "keyword",
127
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
128
129
      },
      "owner": {
130
        "type": "keyword",
131
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
132
133
      },
      "group": {
134
        "type": "keyword",
135
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
136
137
      },
      "object_type": {
138
        "type": "keyword",
139
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
140
141
      },
      "status": {
142
        "type": "keyword",
143
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
144
145
      },
      "latest_version": {
146
        "type": "keyword",
147
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
148
149
      },
      "obsolete": {
150
        "type": "keyword",
151
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
152
153
      },
      "release_procedure": {
154
        "type": "keyword",
155
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
      },
      "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
      }
    }
  }
}