wangchuanjin 4 years ago
parent
commit
fe59d2046c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      esv7/elasticutil.go

+ 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()
 	defer DestoryEsConn(client)
 	if client != nil {