|
@@ -712,13 +712,6 @@ func BodyAnalysis2(body string) (expertNumStr, expertContentStr, interviewDateSt
|
|
body = strings.Replace(body, "报告全文():", "", -1)
|
|
body = strings.Replace(body, "报告全文():", "", -1)
|
|
}
|
|
}
|
|
bodyReturn = body
|
|
bodyReturn = body
|
|
- //fmt.Println(bodyReturn)
|
|
|
|
- //fmt.Println("_________________")
|
|
|
|
- //fmt.Println(fileLink)
|
|
|
|
- //body = strings.Replace(body, "报告全文(", "", -1)
|
|
|
|
- //body = strings.Replace(body, "PDF格式报告下载.pdf", "", -1)
|
|
|
|
- //body = strings.Replace(body, "):", "", -1)
|
|
|
|
-
|
|
|
|
if len(interviewDateArr) > 0 {
|
|
if len(interviewDateArr) > 0 {
|
|
interviewDateStr = interviewDateArr[0]
|
|
interviewDateStr = interviewDateArr[0]
|
|
}
|
|
}
|
|
@@ -752,6 +745,8 @@ func GetSummarytoEs(cont context.Context) (err error) {
|
|
item.Title = v.Title
|
|
item.Title = v.Title
|
|
item.PublishDate = v.PublishDate
|
|
item.PublishDate = v.PublishDate
|
|
item.BodyText = bodyText
|
|
item.BodyText = bodyText
|
|
|
|
+ item.CategoryId = strconv.Itoa(v.CategoryId)
|
|
|
|
+ item.ExpertBackground = v.ExpertBackground
|
|
EsAddOrEditData(indexName, strconv.Itoa(v.ArticleId), item)
|
|
EsAddOrEditData(indexName, strconv.Itoa(v.ArticleId), item)
|
|
fmt.Println(v.ArticleId)
|
|
fmt.Println(v.ArticleId)
|
|
}
|
|
}
|