|
@@ -84,7 +84,7 @@ type Es interface {
|
|
|
GetAllByIk(index, itype, qstr, findfields, order, fields string, start, limit, count int, highlight bool) *[]map[string]interface{}
|
|
|
GetResForJYView(index, itype string, keys []KeyConfig, allquery, findfields, SortQuery, fields string, start, limit int) *[]map[string]interface{}
|
|
|
GetWithCount(index, itype, query string) (int64, *[]map[string]interface{})
|
|
|
- GetAggs(index, itype, query string) (aggs Aggregations, count int64)
|
|
|
+ GetAggs(index, itype, query string) (aggs Aggregations, count int64, res []map[string]interface{})
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -262,6 +262,6 @@ func GetResForJYView(index, itype string, keys []KeyConfig, allquery, findfields
|
|
|
func GetWithCount(index, itype, query string) (int64, *[]map[string]interface{}) {
|
|
|
return VarEs.GetWithCount(index, itype, query)
|
|
|
}
|
|
|
-func GetAggs(index, itype, query string) (aggs Aggregations, count int64) {
|
|
|
+func GetAggs(index, itype, query string) (aggs Aggregations, count int64, res []map[string]interface{}) {
|
|
|
return VarEs.GetAggs(index, itype, query)
|
|
|
}
|