package marketanalysis type BWBuckets struct { Buyerterms struct { Buckets []struct { Key string `json:"key"` DocCount int `json:"doc_count"` } `json:"buckets"` } `json:"buyerterms"` Winnerterms struct { Buckets []struct { Key string `json:"key"` DocCount int `json:"doc_count"` } `json:"buckets"` } `json:"winnerterms"` } type marketTime struct { Thismarket struct { Buckets []marketBuckets `json:"buckets"` } `json:"thismarket"` Oldmarket struct { Buckets []marketBuckets `json:"buckets"` } `json:"oldmarket"` Monthtime struct { Buckets []Buckets `json:"buckets"` } `json:"monthtime"` Yeartime struct { Buckets []Buckets `json:"buckets"` } `json:"yeartime"` } type marketBuckets struct { ProjectCount struct { DocCount int `json:"doc_count"` } `json:"project_count"` ProjectAmount struct { Value float64 `json:"value"` } `json:"project_amount"` BuyerCount struct { Value int `json:"value"` } `json:"buyer_count"` WinnerCount struct { Value int `json:"value"` } `json:"winner_count"` ProjectAvgMoney struct { //DocCount int `json:"doc_count"` //AvgAmount struct { // Value float64 `json:"value"` //} `json:"avg_amount"` Value float64 `json:"value"` } `json:"project_avgMoney"` } type Buckets struct { Key string `json:"key"` From int `json:"from"` FromAsString string `json:"from_as_string"` To int `json:"to"` ToAsString string `json:"to_as_string"` DocCount int `json:"doc_count"` ScaleTotal struct { DocCount int `json:"doc_count"` } `json:"scale_total"` ScaleAmount struct { Value float64 `json:"value"` } `json:"scale_amount"` } type AreaCTop struct { ProjectCount struct { DocCount int `json:"doc_count"` } `json:"project_count"` Total int64 `json:"doc_count"` CountNot0 struct { Count int64 `json:"doc_count"` } `json:"project_count_not0"` Amount struct { Value float64 `json:"value"` } `json:"project_amount"` SortpriceRanges struct { Buckets []struct { Name string `json:"key"` Total int64 `json:"doc_count"` SumSortprice struct { Value float64 `json:"value"` } `json:"sum_sortprice"` } } `json:"sortprice_ranges"` AreaDistribution struct { Buckets []struct { Area string `json:"key"` AreaTotal int64 `json:"doc_count"` AreaAmount struct { Value float64 `json:"value"` } `json:"area_amount"` BuyclassAmount struct { Value float64 `json:"value"` } `json:"buyerclass_amount"` CityGroup struct { Buckets []struct { City string `json:"key"` CityTotal int64 `json:"doc_count"` CityAmount struct { Value float64 `json:"value"` } `json:"city_amount"` } } `json:"city_group"` } } `json:"area_distribution"` BuyerclassScale struct { Buckets []struct { Area string `json:"key"` AreaTotal int64 `json:"doc_count"` AreaAmount struct { Value float64 `json:"value"` } `json:"area_amount"` BuyclassAmount struct { Value float64 `json:"value"` } `json:"buyerclass_amount"` } } `json:"buyerclass_scale"` BuyerclassScaleOther struct { Buckets []struct { Area string `json:"key"` AreaTotal int64 `json:"doc_count"` AreaAmount struct { Value float64 `json:"value"` } `json:"area_amount"` BuyclassAmount struct { Value float64 `json:"value"` } `json:"buyerclass_amount"` } } `json:"buyerclass_scale_other"` AreaAmountTop3 struct { Buckets []struct { Key string `json:"key"` Total int64 `json:"doc_count"` AreaAmount struct { Amount float64 `json:"value"` } `json:"area_amount"` WinnerTop struct { Buckets []struct { Winner string `json:"key"` WinnerTotal int64 `json:"doc_count"` WinnerAmount struct { Amount float64 `json:"value"` } `json:"area_winner_amount"` ProjectDetail struct { Hits struct { Hits []struct { Source struct { Entidlist []string `json:"entidlist"` SWinner string `json:"s_winner"` } `json:"_source"` } } } `json:"project_detail"` } } `json:"winner_top"` } } `json:"area_amount_top3"` AreaCountTop3 struct { Buckets []struct { Area string `json:"key"` Total int64 `json:"doc_count"` WinnerTop struct { Buckets []struct { Winner string `json:"key"` WinnerTotal int64 `json:"doc_count"` ProjectDetail struct { Hits struct { Hits []struct { Source struct { Entidlist []string `json:"entidlist"` SWinner string `json:"s_winner"` } `json:"_source"` } } } `json:"project_detail"` } } `json:"winner_top"` } } `json:"area_count_top3"` BuyclassAmountTop3 struct { Buckets []struct { Key string `json:"key"` Total int64 `json:"doc_count"` AreaAmount struct { Amount float64 `json:"value"` } `json:"buyerclass_amount"` WinnerTop struct { Buckets []struct { Winner string `json:"key"` WinnerTotal int64 `json:"doc_count"` WinnerAmount struct { Amount float64 `json:"value"` } `json:"buyer_winner_amount"` ProjectDetail struct { Hits struct { Hits []struct { Source struct { Entidlist []string `json:"entidlist"` SWinner string `json:"s_winner"` } `json:"_source"` } } } `json:"project_detail"` } } `json:"winner_top"` } } `json:"buyerclass_amount_top3"` BuyclassCountTop3 struct { Buckets []struct { Buyclass string `json:"key"` Total int64 `json:"doc_count"` BidcountTop struct { Buckets []struct { Winner string `json:"key"` WinnerTotal int64 `json:"doc_count"` ProjectDetail struct { Hits struct { Hits []struct { Source struct { Entidlist []string `json:"entidlist"` SWinner string `json:"s_winner"` } `json:"_source"` } } } `json:"project_detail"` } } `json:"bidcount_top"` } } `json:"buyerclass_count_top3"` } type BuyerWinnerRow struct { BuyerAmountDistribution struct { 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"` ProjectAmount struct { Value float64 `json:"value"` } `json:"project_amount"` BuyerCountTop3 struct { Buckets []struct { Key string `json:"key"` BuyerCount struct { //Value int64 `json:"value"` Value int64 `json:"doc_count"` } `json:"buyer_count"` SWinnerTop struct { Buckets []struct { Key string `json:"key"` DocCount int64 `json:"doc_count"` ProjectDetail struct { Hits struct { Total int `json:"total"` MaxScore int `json:"max_score"` Hits []struct { Source struct { Entidlist []string `json:"entidlist"` SWinner string `json:"s_winner"` } `json:"_source"` } `json:"hits"` } `json:"hits"` } `json:"project_detail"` BuyerWinnerAmount struct { //Value int64 `json:"value"` Value int64 `json:"doc_count"` } `json:"buyer_winner_count"` } `json:"buckets"` Value float64 `json:"value"` } `json:"s_winner_top"` } `json:"buckets"` } `json:"buyer_count_top3"` BuyerAmountTop3 struct { Buckets []struct { Key string `json:"key"` BuyerAmount struct { Value float64 `json:"value"` } `json:"buyer_amount"` SWinnerTop struct { Buckets []struct { Key string `json:"key"` DocCount int64 `json:"doc_count"` ProjectDetail struct { Hits struct { Total int `json:"total"` MaxScore int `json:"max_score"` Hits []struct { Source struct { Entidlist []string `json:"entidlist"` SWinner string `json:"s_winner"` } `json:"_source"` } `json:"hits"` } `json:"hits"` } `json:"project_detail"` BuyerWinnerAmount struct { Value float64 `json:"value"` } `json:"buyer_winner_amount"` } `json:"buckets"` Value float64 `json:"value"` } `json:"s_winner_top"` } `json:"buckets"` } `json:"buyer_amount_top3"` WinnerAmountDistribution struct { EntidlistTerms struct { Buckets []struct { Key string `json:"key"` Amount struct { Value float64 `json:"value"` } `json:"amount"` } `json:"buckets"` } `json:"entidlist_terms"` } `json:"winner_amount_distribution"` WinnerCountTop3 struct { SWinnerCount []struct { Key string `json:"key"` ProjectDetail struct { Hits struct { Total int `json:"total"` MaxScore int `json:"max_score"` Hits []struct { Id string `json:"_id"` Source struct { Entidlist []string `json:"entidlist"` SWinner string `json:"s_winner"` } `json:"_source"` } `json:"hits"` } `json:"hits"` } `json:"project_detail"` BuyerCount struct { //Value int64 `json:"value"` Value int64 `json:"doc_count"` } `json:"s_winner_count"` BuyerTop struct { Buckets []struct { Key string `json:"key"` DocCount int64 `json:"doc_count"` BuyerWinnerAmount struct { //Value int64 `json:"value"` Value int64 `json:"doc_count"` } `json:"buyer_winner_count"` } `json:"buckets"` Value float64 `json:"value"` } `json:"buyer_top"` } `json:"buckets"` } `json:"winner_count_top3"` WinnerAmountTop3 struct { SWinnerAmount []struct { Key string `json:"key"` ProjectDetail struct { Hits struct { Total int `json:"total"` MaxScore int `json:"max_score"` Hits []struct { Source struct { Entidlist []string `json:"entidlist"` SWinner string `json:"s_winner"` } `json:"_source"` } `json:"hits"` } `json:"hits"` } `json:"project_detail"` SWinnerAmount struct { Value float64 `json:"value"` } `json:"s_winner_amount"` BuyerTop struct { Buckets []struct { Key string `json:"key"` DocCount int64 `json:"doc_count"` BuyerWinnerAmount struct { Value float64 `json:"value"` } `json:"buyer_winner_amount"` } `json:"buckets"` Value float64 `json:"value"` } `json:"buyer_top"` } `json:"buckets"` } `json:"winner_amount_top3"` } type distributionTrend struct { Key string Count int Amount float64 }