-
Notifications
You must be signed in to change notification settings - Fork 165
/
mapping.json
112 lines (111 loc) · 2.59 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"settings" : {
"number_of_shards" : 2,
"number_of_replicas" : 1,
"index": {
"analysis": {
"analyzer": {
"myCustomAnalyzer": {
"type": "custom",
"tokenizer": "myCustomTokenizer",
"filter": ["myCustomFilter1", "myCustomFilter2"],
"char_filter": ["myCustomCharFilter"]
}
},
"tokenizer": {
"myCustomTokenizer": {
"type": "letter"
},
"myCustomNGramTokenizer": {
"type" : "ngram",
"min_gram" : 2,
"max_gram" : 3
}
},
"filter": {
"myCustomFilter1": {
"type": "lowercase"
},
"myCustomFilter2": {
"type": "kstem"
}
},
"char_filter": {
"myCustomCharFilter": {
"type": "mapping",
"mappings": ["ph=>f", " u => you ", "ES=>Elasticsearch"]
}
}
}
}
},
"mappings" : {
"group" : {
"_source" : {
"enabled" : true
},
"_all" : {
"enabled" : true
},
"properties" : {
"organizer" : { "type" : "string" },
"name" : { "type" : "string" },
"description" : {
"type" : "string",
"term_vector": "with_positions_offsets"
},
"created_on" : {
"type" : "date",
"format" : "yyyy-MM-dd"
},
"tags" : {
"type" : "string",
"index" : "analyzed",
"fields": {
"verbatim" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"members" : { "type" : "string" },
"location_group" : { "type" : "string" }
}
},
"event" : {
"_source" : {
"enabled" : true
},
"_all" : {
"enabled" : false
},
"_parent" : {
"type" : "group"
},
"properties" : {
"host" : { "type" : "string" },
"title" : { "type" : "string" },
"description" : {
"type" : "string",
"term_vector": "with_positions_offsets"
},
"attendees" : { "type" : "string" },
"date" : {
"type" : "date",
"format" : "date_hour_minute"
},
"reviews" : {
"type" : "integer",
"null_value" : 0
},
"location_event": {
"type" : "object",
"properties" : {
"name" : { "type" : "string" },
"geolocation" : { "type" : "geo_point" }
}
}
}
}
}
}