|
@@ -72,7 +72,7 @@ type Es interface {
|
|
GetAllByNgram_MP(index, itype, qstr, findfields, order, fields string, start, limit, count int, highlight bool) *[]map[string]interface{}
|
|
GetAllByNgram_MP(index, itype, qstr, findfields, order, fields string, start, limit, count int, highlight bool) *[]map[string]interface{}
|
|
GetAllByIk(index, itype, qstr, findfields, order, fields string, start, limit, count int, highlight bool) *[]map[string]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{}
|
|
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{})
|
|
|
|
|
|
+ GetWithCount(index, itype, countQuery, allQuery string) (int64, *[]map[string]interface{})
|
|
GetAggs(index, itype, query string) (aggs esV7.Aggregations, count int64, res []map[string]interface{})
|
|
GetAggs(index, itype, query string) (aggs esV7.Aggregations, count int64, res []map[string]interface{})
|
|
Analyze(text, index, analyzer string) (res string)
|
|
Analyze(text, index, analyzer string) (res string)
|
|
analyzeResp(text, analyzer, u string) (*http.Request, error)
|
|
analyzeResp(text, analyzer, u string) (*http.Request, error)
|
|
@@ -306,8 +306,8 @@ func GetAllByIk(index, itype, qstr, findfields, order, fields string, start, lim
|
|
func GetResForJYView(index, itype string, keys []KeyConfig, allquery, findfields, SortQuery, fields string, start, limit int) *[]map[string]interface{} {
|
|
func GetResForJYView(index, itype string, keys []KeyConfig, allquery, findfields, SortQuery, fields string, start, limit int) *[]map[string]interface{} {
|
|
return VarEs.GetResForJYView(index, itype, keys, allquery, findfields, SortQuery, fields, start, limit)
|
|
return VarEs.GetResForJYView(index, itype, keys, allquery, findfields, SortQuery, fields, start, limit)
|
|
}
|
|
}
|
|
-func GetWithCount(index, itype, query string) (int64, *[]map[string]interface{}) {
|
|
|
|
- return VarEs.GetWithCount(index, itype, query)
|
|
|
|
|
|
+func GetWithCount(index, itype, countQuery, allQuery string) (int64, *[]map[string]interface{}) {
|
|
|
|
+ return VarEs.GetWithCount(index, itype, countQuery, allQuery)
|
|
}
|
|
}
|
|
func GetAggs(index, itype, query string) (aggs esV7.Aggregations, count int64, res []map[string]interface{}) {
|
|
func GetAggs(index, itype, query string) (aggs esV7.Aggregations, count int64, res []map[string]interface{}) {
|
|
return VarEs.GetAggs(index, itype, query)
|
|
return VarEs.GetAggs(index, itype, query)
|