forked from loekvangool/githubarchive-elastic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapping.json
92 lines (92 loc) · 2.06 KB
/
mapping.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
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
82
83
84
85
86
87
88
89
90
91
92
{
"template": "githubarchive-*",
"aliases" : {
"githubarchive" : {},
"githubarchive-issuesevent" : {
"filter" : {
"term" : {"type" : "IssuesEvent" }
}
},
"githubarchive-prevent" : {
"filter" : {
"term" : {"type" : "PullRequestEvent" }
}
},
"githubarchive-pushevent" : {
"filter" : {
"term" : {"type" : "PushEvent" }
}
}
},
"settings" : {
"number_of_shards" : 1,
"number_of_replicas" : 1,
"refresh_interval" : "30s"
},
"mappings": {
"_default_": {
"dynamic_templates": [
{
"bodies": {
"path_match": "*body",
"mapping": {
"type": "string",
"index": "analyzed",
"analyzer": "standard"
}
}
},
{
"titles": {
"path_match": "*title",
"mapping": {
"type": "string",
"index": "analyzed",
"analyzer": "standard"
}
}
},
{
"descriptions": {
"path_match": "*description",
"mapping": {
"type": "string",
"index": "analyzed",
"analyzer": "standard"
}
}
},
{
"diff_hunk": {
"path_match": "*diff_hunk",
"mapping": {
"type": "string",
"index": "analyzed",
"analyzer": "standard"
}
}
},
{
"messages": {
"path_match": "*message",
"mapping": {
"type": "string",
"index": "analyzed",
"analyzer": "standard"
}
}
},
{
"keywords": {
"match_mapping_type": "string",
"mapping": {
"type": "string",
"index": "not_analyzed",
"analyzer": "standard"
}
}
}
]
}
}
}