inforeamobject_v1.0.0.json 3.06 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": {
          "code": {
            "type": "keyword",
54
55
            "normalizer": "case_accent_normalizer",
            "boost": 1.5
Carina Antunes's avatar
Carina Antunes committed
56
57
58
          },
          "other_id": {
            "type": "keyword",
59
60
            "normalizer": "case_accent_normalizer",
            "boost": 1.4
Carina Antunes's avatar
Carina Antunes committed
61
62
63
          },
          "class": {
            "type": "keyword",
64
65
            "normalizer": "case_accent_normalizer",
            "boost": 2
Carina Antunes's avatar
Carina Antunes committed
66
67
68
          },
          "description": {
            "type": "text",
69
            "analyzer": "case_accent_analyzer",
Carina Antunes's avatar
Carina Antunes committed
70
71
72
73
74
75
76
77
            "fields": {
              "english": {
                "type": "text",
                "analyzer": "english"
              },
              "french": {
                "type": "text",
                "analyzer": "french"
78
79
80
              },
              "exact_match": {
                "type": "keyword",
81
                "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
82
83
84
85
              }
            }
          },
          "status": {
86
            "boost": 1.7,
87
            "type": "keyword",
88
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
89
90
          },
          "manufacturer": {
91
            "boost": 1.9,
92
            "type": "keyword",
93
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
94
95
          },
          "location": {
96
            "boost": 1.8,
97
            "type": "keyword",
98
            "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
99
100
101
102
          }
        }
      },
      "object_type": {
103
        "type": "keyword",
104
        "normalizer": "case_accent_normalizer"
Carina Antunes's avatar
Carina Antunes committed
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
      },
      "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
      }
    }
  }
}