|
@@ -251,11 +251,10 @@ func GetSearchQuery(keyword, industry, minprice, maxprice, hasBuyerTel, hasWinne
|
|
|
musts = append(musts, mustquery)
|
|
|
}
|
|
|
|
|
|
- var isFileSearch bool = false //搜索范围是否有附件选择
|
|
|
+ //搜索范围是否只有附件
|
|
|
+ //搜索范围只选择附件,是否有附件条件无效;
|
|
|
+ var isFileSearch bool = findfields == "filetext"
|
|
|
if keyword != "" {
|
|
|
- if strings.Contains(findfields, "filetext") { //搜索范围选择附件,是否有附件条件无效;
|
|
|
- isFileSearch = true
|
|
|
- }
|
|
|
keyword_multi_match := fmt.Sprintf(multi_match, "%s", findfields)
|
|
|
shoulds := []string{}
|
|
|
for _, v := range strings.Split(keyword, "+") {
|