|
@@ -394,7 +394,7 @@ func GetSearchQuery(in *bxcore.SearchReq, mustquery string) (qstr string) {
|
|
|
musts = append(musts, fmt.Sprintf(query_bool_must, `"`+strings.Join(industrys, `","`)+`"`))
|
|
|
}
|
|
|
//价格
|
|
|
- if in.Price != "" {
|
|
|
+ if in.Price != "" && len(strings.Split(in.Price, "-")) > 1 {
|
|
|
minprice, maxprice := strings.Split(in.Price, "-")[0], strings.Split(in.Price, "-")[1]
|
|
|
if minprice != "" || maxprice != "" {
|
|
|
sq := ``
|