Ver código fonte

Merge branch 'dev/2.9.38_fu' of jianyu/ent_new into feature/v2.9.38

fuwencai 1 ano atrás
pai
commit
27fc73c095
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      entniche_new/src/service/customer/customer.go

+ 2 - 0
entniche_new/src/service/customer/customer.go

@@ -1042,6 +1042,8 @@ type Bucket struct {
 
 
 // 聚合查询
 // 聚合查询
 func GetAggs(index, itype, query string, countQuery string) (aggs esV7.Aggregations, res []map[string]interface{}, count int64, msg string) {
 func GetAggs(index, itype, query string, countQuery string) (aggs esV7.Aggregations, res []map[string]interface{}, count int64, msg string) {
+	log.Println("GetAggs query:",query)
+	log.Println("GetAggs countQuery",countQuery)
 	count = elastic.Count(index, itype, countQuery)
 	count = elastic.Count(index, itype, countQuery)
 	if count > config.Config.ItemsNumber {
 	if count > config.Config.ItemsNumber {
 		msg = "搜索目标过于宽泛,请缩小搜索范围。"
 		msg = "搜索目标过于宽泛,请缩小搜索范围。"