|
@@ -530,7 +530,7 @@ var topType = map[string]string{
|
|
|
"招标信用信息": "其它",
|
|
|
}
|
|
|
|
|
|
-func top500(industry string, bidField string) (list *[]map[string]interface{}) {
|
|
|
+func top500(subtype string, bidField string) (list *[]map[string]interface{}) {
|
|
|
qstr := ""
|
|
|
if bidField != "" {
|
|
|
// 如果是领域化数据
|
|
@@ -538,6 +538,7 @@ func top500(industry string, bidField string) (list *[]map[string]interface{}) {
|
|
|
{"term": {"bid_field": "%s"}}]}}}`
|
|
|
qstr = fmt.Sprintf(q, bidField)
|
|
|
} else {
|
|
|
+ var query = ``
|
|
|
qstr = `{"query": {"bool": {"must": [%s]}}}`
|
|
|
if subtype != "" {
|
|
|
var topTypes []string
|