|
@@ -12,7 +12,7 @@ const (
|
|
|
pSearchDecMust = `"bidstatus": ["中标","成交","合同","单一"]`
|
|
|
queryBoolMust = `{"terms": {%s}}`
|
|
|
//市场分析聚合查询
|
|
|
- aggsMarketAnalysis = `"%s": {"range": {"field": "jgtime","ranges": [%s]},"aggs":{"project_count": {"filter": {"match_all":{}}},"project_amount":{"sum":{"field":"sortprice"}},"project_avgMoney": { "avg": {"field": "sortprice","missing": 0}} ,"buyer_count":{"cardinality":{"field":"buyer"}},"winner_count":{"cardinality":{"field":"s_winner"}}}}`
|
|
|
+ aggsMarketAnalysis = `"%s": {"range": {"field": "jgtime","ranges": [%s]},"aggs":{"project_count": {"filter": {"match_all":{}}},"project_amount":{"sum":{"field":"sortprice"}},"project_avgMoney": { "avg": {"field": "sortprice","missing": 0}} ,"buyer_count":{"cardinality":{"field":"buyer","precision_threshold": 40000}},"winner_count":{"cardinality":{"field":"s_winner","precision_threshold": 40000}}}}`
|
|
|
//时间分布统计
|
|
|
projectTimeDistribution = `"%s": {"range": { "field": "jgtime","ranges": [%s]},"aggs":{ "scale_amount": {"sum": {"field": "sortprice"}}, "scale_total": {"filter": {"match_all":{}}}}}`
|
|
|
//采购单位聚合查询
|