@@ -232,7 +232,9 @@ func GetBidSearchQuery(in *bxcore.SearchReq) string {
}
query += `]}}`
- query = fmt.Sprintf(query_bool_should, query)
+ if query != "" {
+ query = fmt.Sprintf(query_bool_should, query)
+ }
//发布时间
publishtime := in.PublishTime
if publishtime != "" && len(strings.Split(publishtime, "-")) > 1 {
@@ -75,6 +75,8 @@ func (vs *VipState) GetQueryItems(selectType string, limitOldTime int64) (items
items = append(items, "title")
} else if t == "ppa" {
items = append(items, []string{"purchasing", "projectname.pname"}...)
+ } else if t == "file" { //dev4.7.8 标讯优化:搜索范围附件-》全部用户可用
+ items = append(items, "filetext")
return