aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/resources/json/index-mapping.json
blob: e4470921338228c82341658b221569ecb4f96044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
   "fields": [
              {"name": "validationId", "type": "string", "searchable": false},
              {"name": "validationTimestamp1", "type": "date", "format": "MMM d y HH:m:s||dd-MM-yyyy HH:mm:ss||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||MM\/dd\/yyyy||yyyyMMdd'T'HHmmssZ"},
              {"name": "entityId", "type": "nested"},
              {"name": "entityType", "type": "string", "index": "analyzed"},
              {"name": "entityLink", "type": "string"},
              
              {"name": "resourceVersion", "type": "string", "index": "not_analyzed"},
              {"name": "violations", "type": "nested", "sub-fields": [
                     {"name": "violationId", "type": "string"},
                     {"name": "violationTimestamp", "type": "date", "format": "MMM d y HH:m:s||dd-MM-yyyy HH:mm:ss||yyyy-MM-dd'T'HH:mm:ss.SSSZZ||MM\/dd\/yyyy||yyyyMMdd'T'HHmmssZ"},            
                     {"name": "modelName", "type": "string"},
                     {"name": "category", "type": "string"},
                     {"name": "severity", "type": "string"},
                     {"name": "violationType", "type": "string"},
                     {"name": "validationRule", "type": "string"},
                     {"name": "violationDetails", "type": "nested", "sub-fields": [
                           {"name": "entityId", "type": "nested"},
                           {"name": "entityType", "type": "string"},
                           {"name": "modelName", "type": "string"},
                           {"name": "MISSING_REL", "type": "string"}
                     ]},
                     {"name": "errorMessage", "type": "string", "errMsg": "Sample error message for whitespace check"}
              ]}
       ]
   
}