feat(app): update
This commit is contained in:
@ -37,15 +37,15 @@ type User struct {
|
||||
WellNoIcon string
|
||||
}
|
||||
|
||||
//字符串: text keyword
|
||||
//整数 : byte, short, integer, long
|
||||
//浮点数: float, double
|
||||
//布尔型: boolean
|
||||
//日期: date
|
||||
var UserIndex = map[string]interface{}{
|
||||
"settings": map[string]interface{}{"number_of_shards": 5, "number_of_replicas": 1},
|
||||
"mappings": map[string]interface{}{
|
||||
"properties": map[string]interface{}{
|
||||
// 字符串: text keyword
|
||||
// 整数 : byte, short, integer, long
|
||||
// 浮点数: float, double
|
||||
// 布尔型: boolean
|
||||
// 日期: date
|
||||
var UserIndex = map[string]any{
|
||||
"settings": map[string]any{"number_of_shards": 5, "number_of_replicas": 1},
|
||||
"mappings": map[string]any{
|
||||
"properties": map[string]any{
|
||||
"ActiveTime": map[string]string{"type": "date", "format": "yyyy-MM-dd HH:mm:ssZ||yyyy-MM-dd HH:mm:ss.SSSZ||yyyy-MM-ddZ||epoch_millis||epoch_second"},
|
||||
"AlipayAccount": map[string]string{"type": "keyword"},
|
||||
"AuthFailReason": map[string]string{"type": "text", "analyzer": "ik_max_word"},
|
||||
@ -83,10 +83,10 @@ var UserIndex = map[string]interface{}{
|
||||
},
|
||||
}
|
||||
|
||||
var MessageIndex = map[string]interface{}{
|
||||
"settings": map[string]interface{}{"number_of_shards": 5, "number_of_replicas": 1},
|
||||
"mappings": map[string]interface{}{
|
||||
"properties": map[string]interface{}{
|
||||
var MessageIndex = map[string]any{
|
||||
"settings": map[string]any{"number_of_shards": 5, "number_of_replicas": 1},
|
||||
"mappings": map[string]any{
|
||||
"properties": map[string]any{
|
||||
"id": map[string]string{"type": "keyword"},
|
||||
"curTime": map[string]string{"type": "date", "format": "yyyy-MM-dd HH:mm:ssZ||yyyy-MM-dd HH:mm:ss.SSSZ||yyyy-MM-ddZ||epoch_millis||epoch_second"},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user