|
@@ -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
|