Skip to content

Commit 0b774d8

Browse files
committed
1 parent 1581719 commit 0b774d8

File tree

1 file changed

+97
-0
lines changed

1 file changed

+97
-0
lines changed

src/main/resource/template make

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
_template/group_template put 方式
2+
3+
4+
{
5+
"order": 0,
6+
"template": "group_*",
7+
"settings": {
8+
"index.similarity.cbm25.k1": "1.2",
9+
"index.number_of_replicas": "0",
10+
"index.similarity.cbm25.b": "0.75",
11+
"index.number_of_shards": "1",
12+
"index.similarity.base.type": "simple",
13+
"index.similarity.cbm25.type": "BM25"
14+
},
15+
"mappings": {
16+
"groupType": {
17+
"properties": {
18+
"groupOnId": {
19+
"index": "not_analyzed",
20+
"store": "yes",
21+
"type": "string"
22+
},
23+
"image": {
24+
"index": "not_analyzed",
25+
"store": "yes",
26+
"type": "string"
27+
},
28+
"tuanGouPrice": {
29+
"store": "yes",
30+
"type": "double"
31+
},
32+
"discountRate": {
33+
"store": "yes",
34+
"type": "double"
35+
},
36+
"salesVolume": {
37+
"store": "yes",
38+
"type": "integer"
39+
},
40+
"buyNumber": {
41+
"store": "yes",
42+
"type": "integer"
43+
},
44+
"sort": {
45+
"store": "yes",
46+
"type": "integer"
47+
},
48+
"title": {
49+
"similarity": "cbm25",
50+
"analyzer": "whitespace",
51+
"omit_norms": true,
52+
"store": "yes",
53+
"type": "string"
54+
},
55+
"sales": {
56+
"store": "yes",
57+
"type": "double"
58+
},
59+
"groupName": {
60+
"index": "not_analyzed",
61+
"store": "yes",
62+
"type": "string"
63+
},
64+
"startTime": {
65+
"store": "yes",
66+
"type": "long"
67+
},
68+
"endTime": {
69+
"store": "yes",
70+
"type": "long"
71+
},
72+
"id": {
73+
"index": "not_analyzed",
74+
"store": "yes",
75+
"type": "string"
76+
},
77+
"category": {
78+
"index": "not_analyzed",
79+
"store": "yes",
80+
"type": "string"
81+
},
82+
"increasedSales": {
83+
"store": "yes",
84+
"type": "double"
85+
},
86+
"listPrice": {
87+
"store": "yes",
88+
"type": "double"
89+
},
90+
"budget": {
91+
"store": "yes",
92+
"type": "double"
93+
}
94+
}
95+
}
96+
}
97+
}

0 commit comments

Comments
 (0)