Pārlūkot izejas kodu

fix:移动端招标搜索列表顺序修改

duxin 3 gadi atpakaļ
vecāks
revīzija
34520c6c30
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      jyBXCore/rpc/util/search.go

+ 2 - 2
jyBXCore/rpc/util/search.go

@@ -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}}`