|
@@ -151,7 +151,7 @@ func getesResp(ques, analyzer string, addrs []string) (resp *http.Response, err
|
|
|
const (
|
|
|
INDEX = "bidding"
|
|
|
TYPE = "bidding"
|
|
|
- bidSearch_sort = `{"publishtime":-1}`
|
|
|
+ bidSearch_sort = `{"dataweight":-1,"publishtime":-1}`
|
|
|
RedisName = "other"
|
|
|
//招标搜索分页--每页显示数量
|
|
|
SearchPageSize = 50
|
|
@@ -159,7 +159,7 @@ const (
|
|
|
SearchMaxPageNum = 10 //免费用户500条记录
|
|
|
SearchMaxPageNum_PAYED = 100 //付费用户5000条记录
|
|
|
|
|
|
- bidSearch_field_1 = `"_id","title","publishtime","toptype","subtype","type","area","city","s_subscopeclass","bidamount","budget","buyerclass","spidercode","site"` //,"filetext"
|
|
|
+ bidSearch_field_1 = `"_id","title","publishtime","dataweight","toptype","subtype","type","area","city","s_subscopeclass","bidamount","budget","buyerclass","spidercode","site"` //,"filetext"
|
|
|
bidSearch_field = bidSearch_field_1 + `,"bidopentime","winner","buyer","projectname","projectcode","projectinfo"`
|
|
|
bidSearch_field_file = `,"filetext","isValidFile"`
|
|
|
query_bool_should = `{"bool":{"should":[%s],"minimum_should_match": 1}}`
|