|
@@ -1,6 +1,7 @@
|
|
|
package util
|
|
|
|
|
|
import (
|
|
|
+ elastic2 "app.yhyue.com/moapp/esv1/gopkg.in/olivere/elastic.v1"
|
|
|
util "app.yhyue.com/moapp/jybase/common"
|
|
|
elastic "app.yhyue.com/moapp/jybase/esv1"
|
|
|
"log"
|
|
@@ -8,7 +9,7 @@ import (
|
|
|
)
|
|
|
|
|
|
// 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()
|
|
|
client := elastic.GetEsConn()
|
|
|
defer func() {
|