|
@@ -95,7 +95,7 @@ func (l *GetSearchListLogic) GetSearchList(in *bxcore.SearchReq) (*bxcore.Search
|
|
|
count, list := util.GetBidSearchData(in)
|
|
|
res.KeyWords = in.KeyWords
|
|
|
//二次搜索- 一次搜索结果少于一页数据;关键词长度大于三;第一,二页请求;搜索范围包括title;四个条件
|
|
|
- if len([]rune(in.KeyWords)) > 3 && int(count) < util.SearchPageSize && in.PageNum < 3 && strings.Contains(in.SelectType, "title") {
|
|
|
+ if len([]rune(in.KeyWords)) > 3 && int(count) < util.SearchPageSize && int(count) > -1 && in.PageNum < 3 && strings.Contains(in.SelectType, "title") {
|
|
|
if iksk := util.HttpEs(in.KeyWords, "ik_smart", IC.DB.Es.Addr); iksk != "" {
|
|
|
iksk_temp := in.KeyWords
|
|
|
in.KeyWords = iksk
|