|
@@ -505,7 +505,7 @@ func (m *Front) PcAjaxReq() {
|
|
|
listSize = len(*list)
|
|
|
}
|
|
|
if len([]rune(s_word)) > 3 && int(count) < pc_pageSize && start == 0 {
|
|
|
- secondKWS = public.HttpEs(s_word, "ik_smart", config.Sysconfig["elasticsearch"].(string))
|
|
|
+ secondKWS = public.HttpEs(s_word, "ik_smart", public.DbConf.Elasticsearch.Main.Address)
|
|
|
findfields := `"title"`
|
|
|
qstr := getSearchQuery(secondKWS, industry, minprice, maxprice, findfields, getBidSearchQuery(area, publishtime, subtype))
|
|
|
secondLimit := 2*pc_pageSize - int(count)
|
|
@@ -872,7 +872,7 @@ func (m *Front) WxsearchlistPaging() {
|
|
|
listSize = len(*list)
|
|
|
}
|
|
|
if len([]rune(s_word)) > 3 && listSize < pc_pageSize && pageNum == 1 {
|
|
|
- secondKWS = public.HttpEs(s_word, "ik_smart", config.Sysconfig["elasticsearch"].(string))
|
|
|
+ secondKWS = public.HttpEs(s_word, "ik_smart", public.DbConf.Elasticsearch.Main.Address)
|
|
|
findfields := `"title"`
|
|
|
qstr := getSearchQuery(secondKWS, industry, minprice, maxprice, findfields, getBidSearchQuery(scope, publishtime, subtype))
|
|
|
secondLimit := 2*pc_pageSize - listSize
|