-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathelastic6-schema.json
39 lines (39 loc) · 1.04 KB
/
elastic6-schema.json
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
29
30
31
32
33
34
35
36
37
38
39
{
"settings": {
"number_of_shards": 10,
"number_of_replicas": 0,
"analysis": {
"normalizer": {
"lowercase": {
"type": "custom",
"char_filter": [],
"filter": ["lowercase"]
}
}
}
},
"mappings": {
"_doc": {
"_source": {
"enabled": true
},
"properties": {
"user": {"type": "keyword", "normalizer": "lowercase"},
"box": {"type": "keyword", "normalizer": "lowercase"},
"uid": {"type": "integer"},
"from": {"type": "text"},
"sender": {"type": "text"},
"to": {"type": "text"},
"cc": {"type": "text"},
"bcc": {"type": "text"},
"subject":{"type": "text"},
"body": {"type": "text"},
"message-id":{"type": "keyword"},
"date": {
"type": "date",
"format": "EEE, d MMM yyyy HH:mm:ss Z||yyyy-MM-dd HH:mm:ss||yyyy-MM-dd"
}
}
}
}
}