Browse Source

wip:提交

wangkaiyue 2 years ago
parent
commit
8fcd3fe88f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      util/aggsSearchUtil.go

+ 2 - 1
util/aggsSearchUtil.go

@@ -1,6 +1,7 @@
 package util
 package util
 
 
 import (
 import (
+	elastic2 "app.yhyue.com/moapp/esv1/gopkg.in/olivere/elastic.v1"
 	util "app.yhyue.com/moapp/jybase/common"
 	util "app.yhyue.com/moapp/jybase/common"
 	elastic "app.yhyue.com/moapp/jybase/esv1"
 	elastic "app.yhyue.com/moapp/jybase/esv1"
 	"log"
 	"log"
@@ -8,7 +9,7 @@ import (
 )
 )
 
 
 // GetAggs 聚合查询
 // GetAggs 聚合查询
-func GetAggs(index, itype, query string) (aggs elastic.Aggregations, count int64) {
+func GetAggs(index, itype, query string) (aggs elastic2.Aggregations, count int64) {
 	defer util.Catch()
 	defer util.Catch()
 	client := elastic.GetEsConn()
 	client := elastic.GetEsConn()
 	defer func() {
 	defer func() {