inforeamobject_v1.0.0.json 4.24 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": {
          "code": {
82
83
84
85
86
87
88
89
90
91
92
            "type": "text",
            "analyzer": "wildcard",
            "search_analyzer": "lowercase_keyword_analyzer",
            "boost": 1.5,
            "fields": {
              "exact_match": {
                "type": "keyword",
                "normalizer": "case_accent_normalizer",
                "boost": 1.5
              }
            }
Carina Antunes's avatar
Carina Antunes committed
93
94
          },
          "other_id": {
95
96
97
98
99
100
101
102
103
104
105
            "type": "text",
            "analyzer": "wildcard",
            "search_analyzer": "lowercase_keyword_analyzer",
            "boost": 1.4,
            "fields": {
              "exact_match": {
                "type": "keyword",
                "normalizer": "case_accent_normalizer",
                "boost": 1.4
              }
            }
Carina Antunes's avatar
Carina Antunes committed
106
107
108
          },
          "class": {
            "type": "keyword",
109
110
            "normalizer": "case_accent_normalizer",
            "boost": 2
Carina Antunes's avatar
Carina Antunes committed
111
112
113
          },
          "description": {
            "type": "text",
114
            "analyzer": "case_accent_analyzer",
Carina Antunes's avatar
Carina Antunes committed
115
116
117
118
119
120
121
122
            "fields": {
              "english": {
                "type": "text",
                "analyzer": "english"
              },
              "french": {
                "type": "text",
                "analyzer": "french"
123
124
125
              },
              "exact_match": {
                "type": "keyword",
126
                "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
127
128
129
130
              }
            }
          },
          "status": {
131
            "boost": 1.7,
132
            "type": "keyword",
133
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
134
135
          },
          "manufacturer": {
136
            "boost": 1.9,
137
            "type": "keyword",
138
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
139
140
          },
          "location": {
141
            "boost": 1.8,
142
            "type": "keyword",
143
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
144
145
146
147
          }
        }
      },
      "object_type": {
148
        "type": "keyword",
149
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
      },
      "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
      }
    }
  }
}