|
@@ -56,56 +56,6 @@ func getAllKeywordArr(res []keyWordGroup) (rData []viewKeyWord) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-type T struct {
|
|
|
- Aggregations struct {
|
|
|
- WinnerAmountDistribution struct {
|
|
|
- DocCountErrorUpperBound int `json:"doc_count_error_upper_bound"`
|
|
|
- SumOtherDocCount int `json:"sum_other_doc_count"`
|
|
|
- Buckets []struct {
|
|
|
- Key string `json:"key"`
|
|
|
- DocCount int `json:"doc_count"`
|
|
|
- Amount struct {
|
|
|
- Value float64 `json:"value"`
|
|
|
- } `json:"amount"`
|
|
|
- } `json:"buckets"`
|
|
|
- } `json:"winner_amount_distribution"`
|
|
|
- ProjectCount struct {
|
|
|
- DocCount int `json:"doc_count"`
|
|
|
- } `json:"project_count"`
|
|
|
- ProjectAmount struct {
|
|
|
- Value float64 `json:"value"`
|
|
|
- } `json:"project_amount"`
|
|
|
- ProjectCountNot0 struct {
|
|
|
- DocCount int `json:"doc_count"`
|
|
|
- } `json:"project_count_not0"`
|
|
|
- BuyerclassScale struct {
|
|
|
- DocCountErrorUpperBound int `json:"doc_count_error_upper_bound"`
|
|
|
- SumOtherDocCount int `json:"sum_other_doc_count"`
|
|
|
- Buckets []struct {
|
|
|
- Key string `json:"key"`
|
|
|
- DocCount int `json:"doc_count"`
|
|
|
- BuyerclassAmount struct {
|
|
|
- Value float64 `json:"value"`
|
|
|
- } `json:"buyerclass_amount"`
|
|
|
- BuyerclassTotal struct {
|
|
|
- DocCount int `json:"doc_count"`
|
|
|
- } `json:"buyerclass_total"`
|
|
|
- } `json:"buckets"`
|
|
|
- } `json:"buyerclass_scale"`
|
|
|
- BuyerAmountDistribution struct {
|
|
|
- DocCountErrorUpperBound int `json:"doc_count_error_upper_bound"`
|
|
|
- SumOtherDocCount int `json:"sum_other_doc_count"`
|
|
|
- Buckets []struct {
|
|
|
- Key string `json:"key"`
|
|
|
- DocCount int `json:"doc_count"`
|
|
|
- Amount struct {
|
|
|
- Value float64 `json:"value"`
|
|
|
- } `json:"amount"`
|
|
|
- } `json:"buckets"`
|
|
|
- } `json:"buyer_amount_distribution"`
|
|
|
- } `json:"aggregations"`
|
|
|
-}
|
|
|
-
|
|
|
// getGroupKeywordArr 模糊拆分为多个精准匹配
|
|
|
func getGroupKeywordArr(res []viewKeyWord) (rData []viewKeyWord) {
|
|
|
for _, kw := range res {
|