|
@@ -307,7 +307,7 @@ func PublicSearch(userId, selectType, publishtime string, bidSearchOldUserLimit
|
|
|
}
|
|
|
|
|
|
//所有的再次分词查询 只查标题
|
|
|
-func IntegratedData(platform string, s_word, secondKWS, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, secondFlag, area, publishtime, subtype, buyerclass, notkey string, queryItems []string, list *[]map[string]interface{}) (string, string, string, string, []map[string]interface{}) {
|
|
|
+func IntegratedData(platform string, s_word, secondKWS, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, secondFlag, area, publishtime, subtype, buyerclass, notkey string, queryItems []string, list *[]map[string]interface{}) (string, string, string, string, *[]map[string]interface{}) {
|
|
|
var pcAjaxFlag string
|
|
|
secondSearch := false
|
|
|
var secRel *[]map[string]interface{}
|
|
@@ -339,7 +339,7 @@ func IntegratedData(platform string, s_word, secondKWS, industry, minprice, maxp
|
|
|
s_word += "+" + secondKWS
|
|
|
}
|
|
|
}
|
|
|
- return s_word, pcAjaxFlag, secondFlag, secondKWS, *secRel
|
|
|
+ return s_word, pcAjaxFlag, secondFlag, secondKWS, secRel
|
|
|
}
|
|
|
|
|
|
func classify(stp, area, industry string, configData map[string]interface{}) (string, string, string) {
|
|
@@ -445,11 +445,8 @@ func SearchData(platform string, request *http.Request, currentPage int, userId,
|
|
|
listSize = len(*list)
|
|
|
}
|
|
|
if len([]rune(s_word)) > 3 && int(count) < SearchPageSize_PC && start == number {
|
|
|
- var paramList []map[string]interface{}
|
|
|
- s_word, pcAjaxFlag, secondFlag, second, paramList = IntegratedData(platform, s_word, secondKWS, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, secondFlag, area, publishtime, subtype, buyerclass, notkey, queryItems, list)
|
|
|
- if len(paramList) > 0 {
|
|
|
- list = ¶mList
|
|
|
- }
|
|
|
+ var paramList *[]map[string]interface{} = list
|
|
|
+ s_word, pcAjaxFlag, secondFlag, second, list = IntegratedData(platform, s_word, secondKWS, industry, minprice, maxprice, hasBuyerTel, hasWinnerTel, secondFlag, area, publishtime, subtype, buyerclass, notkey, queryItems, paramList)
|
|
|
}
|
|
|
public.SaveUserSearchLog(request, userId, -1, platform, "超级搜索", map[string]interface{}{
|
|
|
"search_word": util.If(platform == "app" || platform == "wx", searchvalue, s_word),
|