Created
December 13, 2020 11:53
-
-
Save arussellsaw/532f02a61813bed8d75d40436ec5d896 to your computer and use it in GitHub Desktop.
broken search doc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var docStr = "英欧贸易谈判进入最后时刻 双方警告目前不太可能达成协议1小时前分享至当地时间13日,据多家英媒报道称,英欧贸易谈判已进入最后时刻,12日的谈判一直持续到深夜,双方希望谈判可以取得一定的突破以打破目前的僵局。但英国和欧盟双方最后都警告称,目前还不太可能达成协议。一位英国政府消息人士表示,欧盟方面给出的协议条款仍然是英国“无法接受的”。(央视新闻)下一篇中金:年底市场风险偏好可能偏弱12月13日讯,中金策略今日晚间发布公告称,临近年底市场风险偏好可能偏弱,投资者在市场的变化中稳守基本面与估值底线,注重低估值、有正面催化等因素,逢低吸纳符合产业升级与消费升级主线的优质成长个股。关注新能源汽车产业链中上游及原材料如锂;低吸部分疫情受损、当前在复苏的板块,如酒店等。中长期逢低吸纳反应消费升级与产业升级趋势的优质龙头。(财联社)1小时前" | |
var docTitle = "英欧贸易谈判进入最后时刻 双方警告目前不太可能达成协议" | |
_, err = indexService.PutDoc(ctx, firesearch.PutDocRequest{ | |
IndexPath: "news/search/articles", | |
Doc: firesearch.Doc{ | |
ID: a.ID, | |
SearchFields: []firesearch.SearchField{ | |
{ | |
Key: "title", | |
Value: docTitle, | |
Store: true, | |
}, | |
{ | |
Key: "content", | |
Value: docStr, | |
Store: true, | |
}, | |
}, | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment