|
@@ -157,9 +157,10 @@ 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"` //,"filetext"
|
|
|
- bidSearch_field = bidSearch_field_1 + `,"bidopentime","winner","buyer","projectname","projectcode","projectinfo"`
|
|
|
- query_bool_should = `{"bool":{"should":[%s],"minimum_should_match": 1}}`
|
|
|
+ bidSearch_field_1 = `"_id","title","publishtime","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"`
|
|
|
+ query_bool_should = `{"bool":{"should":[%s],"minimum_should_match": 1}}`
|
|
|
)
|
|
|
|
|
|
//GetBidSearchData 标信息搜索
|
|
@@ -184,6 +185,9 @@ func GetBidSearchData(in *bxcore.SearchReq) (count int64, list []*bxcore.SearchL
|
|
|
if start == 0 {
|
|
|
field = bidSearch_field
|
|
|
}
|
|
|
+ if IC.C.FileSignBool {
|
|
|
+ field = field + bidSearch_field_file
|
|
|
+ }
|
|
|
var repl *[]map[string]interface{}
|
|
|
if hightlightContent {
|
|
|
repl = elastic.GetAllByNgram(INDEX, TYPE, qstr, `"detail"`, bidSearch_sort, field, start, int(in.PageSize), 115, true)
|