-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintro-to-es-template.json
56 lines (56 loc) · 1.22 KB
/
intro-to-es-template.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"template": "intro-to-es-*",
"settings": {
"index": {
"number_of_replicas": 0,
"analysis": {
"analyzer": {
"lowercase_non_tokenized": {
"type": "custom",
"tokenizer": "keyword",
"filter": [ "lowercase" ]
},
"preserve_slack_markup": {
"type": "custom",
"tokenizer": "preserve_slack_markup",
"filter": [ "lowercase" ]
}
},
"tokenizer": {
"preserve_slack_markup": {
"type": "pattern",
"pattern": "(?<!^)[^a-zA-Z0-9_@]+|\\s*@(?!\\w)"
}
}
}
}
},
"aliases": {
"intro-to-es": {}
},
"mappings": {
"chat": {
"properties": {
"from": {
"type": "string",
"analyzer": "lowercase_non_tokenized"
},
"to": {
"type": "string",
"analyzer": "lowercase_non_tokenized"
},
"active": {
"type": "integer"
},
"timestamp": {
"type": "date",
"format": "dateOptionalTime"
},
"message": {
"type": "string",
"analyzer": "preserve_slack_markup"
}
}
}
}
}