wangchuanjin 4 жил өмнө
parent
commit
fe59d2046c

+ 1 - 1
esv7/elasticutil.go

@@ -511,7 +511,7 @@ func BulkUpdate(index, itype string, ids []string, updateStr string) {
 	}
 	}
 }
 }
 
 
-func NewBulkUpdate(index string, params [][]string) bool {
+func NewBulkUpdate(index string, params ...[]string) bool {
 	client := GetEsConn()
 	client := GetEsConn()
 	defer DestoryEsConn(client)
 	defer DestoryEsConn(client)
 	if client != nil {
 	if client != nil {