Răsfoiți Sursa

feat:更新

wangchuanjin 1 an în urmă
părinte
comite
c25e9dca41

+ 2 - 0
createindex/base/base.go

@@ -77,6 +77,8 @@ func ParseData(field string, data string) (f string, d any) {
 			d = gconv.Int(data)
 		case "Int64":
 			d = gconv.Int64(data)
+		case "Millisecond":
+			d = gtime.New(data).UnixMilli()
 		}
 	} else {
 		f = field

+ 16 - 15
createindex/config.yaml

@@ -20,7 +20,8 @@ tasks:
           省份: "area"
           城市: "city"
           区县: "district"
-          发布时间: "Date|publishtime"
+          发布时间: "Millisecond|publishtime"
+          发布时间2: "publishtime2"
           项目编号: "projectcode"
           采购单位: "buyer"
           采购单位类型: "buyerclass"
@@ -47,17 +48,17 @@ tasks:
           投标方式: "bidway"
           正文: "details"
     direct:
-      # type: "es"
-      # data:
-      #   addr: "http://192.168.3.241:9205"
-      #   user: ""
-      #   pwd: ""
-      #   size: 5
-      #   index: "ttbid_v2"
-      type: "tidb"
-      data:
-        dbName: "bi_service"
-        addr: "192.168.3.217:4000"
-        user: "root"
-        pwd: "=PDT49#80Z!RVv52_z"
-        colName: "customer_data_ttzl"
+       type: "es"
+       data:
+         addr: "http://192.168.3.149:9200"
+         user: ""
+         pwd: ""
+         size: 5
+         index: "ttbid_v5"
+      #type: "tidb"
+      #data:
+      #  dbName: "bi_service"
+      #  addr: "192.168.3.217:4000"
+      #  user: "root"
+      #  pwd: "=PDT49#80Z!RVv52_z"
+      #  colName: "customer_data_ttzl"

BIN
createindex/upload/千里马数据表2023-09-27-4.xlsx