xuzhiheng vor 2 Jahren
Ursprung
Commit
bb84b97632
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 1 1
      src/client/customerRule.go
  2. 2 2
      src/util/utiltag.go

+ 1 - 1
src/client/customerRule.go

@@ -215,7 +215,7 @@ func (c *CustomerRule) ProductData() {
 		totalCount := 0
 		//
 		multiMatchcount := strings.Count(s_esquery, "multi_match")
-		fmt.Println("multi_match", multiMatchcount, s_esquery)
+		log.Println("multi_match", multiMatchcount, s_esquery)
 		// if multi_match_count > 1000 {
 		// 	c.ServeJson(map[string]interface{}{
 		// 		"rep": false,

+ 2 - 2
src/util/utiltag.go

@@ -132,8 +132,8 @@ func UtilEsFind1(tags map[string]interface{}) (error, int64) {
 	searchResult, err := client.Search(EsIndex).Query(cc).Size(int(i_maxnum)).Do(ctx)
 	if err == nil && searchResult.Hits != nil {
 		datas := make([]map[string]interface{}, 0)
-		util.Debug("es查询到的数量:", searchResult.Hits.TotalHits.Value)
-		util.Debug("es查询到的数量(实际):", len(searchResult.Hits.Hits))
+		log.Println("es查询到的数量:", searchResult.Hits.TotalHits.Value)
+		log.Println("es查询到的数量(实际):", len(searchResult.Hits.Hits))
 		for _, v := range searchResult.Hits.Hits {
 			wg.Add(1)
 			ch <- true