|
@@ -50,9 +50,9 @@ func GetWxsearchlistData(keywords, scope, publishtime, subtype, industry, minpri
|
|
|
}
|
|
|
qstr := GetSearchQuery(s_word, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, findfields, GetBidSearchQuery(scope, publishtime, subtype, winner, buyerclass))
|
|
|
if hightlightContent { //全文搜索
|
|
|
- list = elastic.GetAllByNgram(INDEX, TYPE, qstr, findfields, bidSearch_sort, field, (pageNum-1)*pageSize, pageSize, 100, true)
|
|
|
+ list = elastic.GetAllByNgram(INDEX, TYPE, qstr, `"detail"`, bidSearch_sort, field, (pageNum-1)*pageSize, pageSize, 100, true)
|
|
|
} else { //标题搜索
|
|
|
- list = elastic.GetAllByNgram(INDEX, TYPE, qstr, findfields, bidSearch_sort, field, (pageNum-1)*pageSize, pageSize, 100, false)
|
|
|
+ list = elastic.GetAllByNgram(INDEX, TYPE, qstr, ``, bidSearch_sort, field, (pageNum-1)*pageSize, pageSize, 100, false)
|
|
|
}
|
|
|
if list != nil {
|
|
|
public.BidListConvert(industry, list)
|
|
@@ -87,7 +87,7 @@ func GetPcBidSearchData(searchvalue, area, publishtime, subtype, industry, minpr
|
|
|
if hightlightContent {
|
|
|
repl = elastic.GetAllByNgram(INDEX, TYPE, qstr, `"detail"`, bidSearch_sort, field, start, pageSize, 115, true)
|
|
|
} else {
|
|
|
- repl = elastic.GetAllByNgram(INDEX, TYPE, qstr, "", bidSearch_sort, field, start, pageSize, 0, false)
|
|
|
+ repl = elastic.GetAllByNgram(INDEX, TYPE, qstr, ``, bidSearch_sort, field, start, pageSize, 0, false)
|
|
|
}
|
|
|
if repl != nil && *repl != nil && len(*repl) > 0 {
|
|
|
public.BidListConvert(industry, repl)
|