item_v1.0.0.json 4.1 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
9
10
11
12
13
14
15
16
17
    "index.query.default_field": [
      "_data.*"
    ],
    "analysis": {
      "normalizer": {
        "lowercase_normalizer": {
          "type": "custom",
          "filter": [
            "lowercase"
          ]
        }
      }
    }
Carina Antunes's avatar
Carina Antunes committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  },
  "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",
44
45
            "normalizer": "lowercase_normalizer",
            "boost": 2
Carina Antunes's avatar
Carina Antunes committed
46
47
48
          },
          "version": {
            "type": "keyword",
49
            "normalizer": "lowercase_normalizer"
Carina Antunes's avatar
Carina Antunes committed
50
51
52
          },
          "item_id_version": {
            "type": "keyword",
53
54
            "normalizer": "lowercase_normalizer",
            "boost": 2
Carina Antunes's avatar
Carina Antunes committed
55
56
57
          },
          "name": {
            "type": "text",
58
            "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
59
60
61
            "fields": {
              "english": {
                "type": "text",
62
                "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
63
64
65
66
                "analyzer": "english"
              },
              "french": {
                "type": "text",
67
                "boost": 1.5,
Carina Antunes's avatar
Carina Antunes committed
68
69
70
71
                "analyzer": "french"
              },
              "exact_match": {
                "type": "keyword",
72
73
                "normalizer": "lowercase_normalizer",
                "boost": 1.5
Carina Antunes's avatar
Carina Antunes committed
74
75
76
77
78
              }
            }
          },
          "description": {
            "type": "text",
79
            "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
80
81
82
            "fields": {
              "english": {
                "type": "text",
83
                "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
84
85
86
87
                "analyzer": "english"
              },
              "french": {
                "type": "text",
88
                "boost": 1.25,
Carina Antunes's avatar
Carina Antunes committed
89
90
91
92
93
94
                "analyzer": "french"
              }
            }
          },
          "equipment_code": {
            "type": "keyword",
95
96
            "normalizer": "lowercase_normalizer",
            "boost": 1.6
Carina Antunes's avatar
Carina Antunes committed
97
98
99
100
101
          },
          "context": {
            "type": "object",
            "properties": {
              "name": {
102
103
                "type": "keyword",
                "normalizer": "lowercase_normalizer"
Carina Antunes's avatar
Carina Antunes committed
104
105
              },
              "context_id": {
106
107
                "type": "keyword",
                "normalizer": "lowercase_normalizer"
Carina Antunes's avatar
Carina Antunes committed
108
109
110
111
112
113
              }
            }
          }
        }
      },
      "cid": {
114
115
        "type": "keyword",
        "normalizer": "lowercase_normalizer"
Carina Antunes's avatar
Carina Antunes committed
116
117
      },
      "owner": {
118
119
        "type": "keyword",
        "normalizer": "lowercase_normalizer"
Carina Antunes's avatar
Carina Antunes committed
120
121
      },
      "group": {
122
123
        "type": "keyword",
        "normalizer": "lowercase_normalizer"
Carina Antunes's avatar
Carina Antunes committed
124
125
      },
      "object_type": {
126
127
        "type": "keyword",
        "normalizer": "lowercase_normalizer"
Carina Antunes's avatar
Carina Antunes committed
128
129
      },
      "status": {
130
131
        "type": "keyword",
        "normalizer": "lowercase_normalizer"
Carina Antunes's avatar
Carina Antunes committed
132
133
      },
      "latest_version": {
134
135
        "type": "keyword",
        "normalizer": "lowercase_normalizer"
Carina Antunes's avatar
Carina Antunes committed
136
137
      },
      "obsolete": {
138
139
        "type": "keyword",
        "normalizer": "lowercase_normalizer"
Carina Antunes's avatar
Carina Antunes committed
140
141
      },
      "release_procedure": {
142
143
        "type": "keyword",
        "normalizer": "lowercase_normalizer"
Carina Antunes's avatar
Carina Antunes committed
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
      },
      "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
      }
    }
  }
}