|
@@ -378,7 +378,7 @@ func syncESAndSendMessage(reports []reportDao.Report) (err error) {
|
|
|
//同步es
|
|
|
for _, report := range reports {
|
|
|
var exist bool
|
|
|
- exist, err = elastic().Exist(report.ID)
|
|
|
+ exist, err = elastic().Exist(htConfig.GetReportIndex(), report.ID)
|
|
|
if err != nil {
|
|
|
logger.Error("查询es失败,reportId::%d,err:%v", report.ID, err)
|
|
|
}
|