@@ -75,6 +75,9 @@ curl -XPUT http://localhost:9200/jydoc_v1 -u elastic:elastic -H 'Content-Type:ap
},
"docFileType": {
"type": "long"
+ },
+ "previewImgId": {
+ "type": "keyword"
}
@@ -70,6 +70,7 @@ func main() {
//
func run() {
+ defer common.Catch()
now := date.NowFormat(date.Date_Full_Layout)
log.Println("start update to es", TimeTask.Time, now)
rows, err := Mysql.Raw(`select docId,downTimes,viewTimes from doc_statistics where updateDate>=? and updateDate<?`, TimeTask.Time, now).Rows()