Skip to content

Commit 1581719

Browse files
committed
1 parent 6b56f8d commit 1581719

File tree

1 file changed

+178
-0
lines changed

1 file changed

+178
-0
lines changed

src/main/resource/template

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
"nested_t": {
2+
3+
"order": 0,
4+
"template": "nested_*",
5+
"settings": {
6+
"index.similarity.base.type": "Custom",
7+
"index.number_of_replicas": "0",
8+
"index.number_of_shards": "2"
9+
},
10+
"mappings": {
11+
"product": {
12+
"properties": {
13+
"productId": {
14+
"store": true,
15+
"type": "string"
16+
},
17+
"sku": {
18+
"dynamic_templates": [
19+
{
20+
"facet_template": {
21+
"mapping": {
22+
"index": "not_analyzed",
23+
"type": "string"
24+
},
25+
"match_mapping_type": "string",
26+
"match": "f.*"
27+
}
28+
}
29+
,
30+
{
31+
"areasalesVolume_template": {
32+
"mapping": {
33+
"type": "integer"
34+
},
35+
"match_mapping_type": "integer",
36+
"match": "s.*"
37+
}
38+
}
39+
],
40+
"type": "nested",
41+
"properties": {
42+
"ignoreProductTag": {
43+
"index": "not_analyzed",
44+
"store": "yes",
45+
"type": "string"
46+
},
47+
"salesVolume": {
48+
"store": true,
49+
"type": "integer"
50+
},
51+
"shopName": {
52+
"index": "not_analyzed",
53+
"store": true,
54+
"type": "string"
55+
},
56+
"n-gram": {
57+
"norms": {
58+
"enabled": false
59+
},
60+
"analyzer": "whitespace",
61+
"type": "string"
62+
},
63+
"title": {
64+
"norms": {
65+
"enabled": false
66+
},
67+
"analyzer": "whitespace",
68+
"type": "string"
69+
},
70+
"price": {
71+
"store": true,
72+
"type": "float"
73+
},
74+
"evaluateCount": {
75+
"store": true,
76+
"type": "integer"
77+
},
78+
"productTag": {
79+
"store": true,
80+
"type": "integer"
81+
},
82+
"shopId": {
83+
"index": "not_analyzed",
84+
"store": true,
85+
"type": "string"
86+
},
87+
"categories": {
88+
"index": "not_analyzed",
89+
"store": true,
90+
"type": "string"
91+
},
92+
"skuId": {
93+
"index": "not_analyzed",
94+
"store": true,
95+
"type": "string"
96+
},
97+
"a": {
98+
"norms": {
99+
"enabled": false
100+
},
101+
"analyzer": "whitespace",
102+
"type": "string"
103+
},
104+
"c": {
105+
"norms": {
106+
"enabled": false
107+
},
108+
"analyzer": "whitespace",
109+
"type": "string"
110+
},
111+
"skuState": {
112+
"store": true,
113+
"type": "integer"
114+
},
115+
"productId": {
116+
"index": "not_analyzed",
117+
"store": true,
118+
"type": "string"
119+
},
120+
"weight": {
121+
"store": true,
122+
"type": "float"
123+
},
124+
"promoScore": {
125+
"store": true,
126+
"type": "float"
127+
},
128+
"jdTime": {
129+
"store": true,
130+
"type": "long"
131+
},
132+
"productState": {
133+
"store": true,
134+
"type": "integer"
135+
},
136+
"categoryBrand": {
137+
"norms": {
138+
"enabled": false
139+
},
140+
"analyzer": "whitespace",
141+
"type": "string"
142+
},
143+
"sortNo": {
144+
"store": true,
145+
"type": "integer"
146+
},
147+
"skuNo": {
148+
"index": "not_analyzed",
149+
"store": true,
150+
"type": "string"
151+
},
152+
"jdPrice": {
153+
"store": true,
154+
"type": "float"
155+
},
156+
"shopType": {
157+
"store": true,
158+
"type": "integer"
159+
},
160+
"facet": {
161+
"norms": {
162+
"enabled": false
163+
},
164+
"analyzer": "whitespace",
165+
"type": "string"
166+
},
167+
"startDate": {
168+
"store": true,
169+
"type": "long"
170+
}
171+
}
172+
}
173+
}
174+
}
175+
},
176+
"aliases": { }
177+
178+
}

0 commit comments

Comments
 (0)