|
@@ -35,6 +35,7 @@ type Tags struct {
|
|
|
|
|
|
var LetterArr = []string{"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"}
|
|
|
var bidField = `"_id","site","title","publishtime","toptype","subtype","type","area","href","bidopentime","winner","buyer","bidamount","budget","s_subscopeclass","projectname","detail"`
|
|
|
+var seoBidField = `"_id","title","publishtime","subtype","area","href","bidamount","budget","s_subscopeclass","projectname","detail"`
|
|
|
|
|
|
func init() {
|
|
|
xweb.AddAction(&Tags{})
|
|
@@ -679,10 +680,10 @@ func (this *Tags) GetBidding(industry, area, city, stype, keyword string, reques
|
|
|
if count1 < startPage || startPage < 0 {
|
|
|
startPage = 0
|
|
|
}
|
|
|
- datas = elastic.GetPage(INDEX, TYPE, query, bidSearch_sort, bidField, startPage, limitcount)
|
|
|
+ datas = elastic.GetPage(INDEX, TYPE, query, bidSearch_sort, seoBidField, startPage, limitcount)
|
|
|
} else {
|
|
|
log.Println(keyword, area, city, industry)
|
|
|
- _, _, datas = bidsearch.GetPcBidSearchData(keyword, area, city, fmt.Sprintf("%s_%s", starttime, endtime), stype, industry, "", "", "", "", "", "", "", 0, true, []string{"title", "detail", "purchasing"}, bidField, "", false, false, "", limitcount, "")
|
|
|
+ _, _, datas = bidsearch.GetPcBidSearchData(keyword, area, city, fmt.Sprintf("%s_%s", starttime, endtime), stype, industry, "", "", "", "", "", "", "", 0, true, []string{"title", "detail", "purchasing"}, seoBidField, "", false, false, "", limitcount, "")
|
|
|
|
|
|
if datas != nil && len(*datas) > limitcount {
|
|
|
*datas = (*datas)[0:limitcount]
|