|
|
@ -69,8 +69,7 @@ func (the *Storage2Es) SaveRaw(dataList []common_models.EsRaw) { |
|
|
|
`, the.rawIndex, _id, source) |
|
|
|
body.WriteString(s) |
|
|
|
} |
|
|
|
//the.esHelper.BulkWrite(the.rawIndex, body.String())
|
|
|
|
newEsHelper().BulkWrite(the.rawIndex, body.String()) |
|
|
|
the.esHelper.BulkWrite(the.rawIndex, body.String()) |
|
|
|
} |
|
|
|
|
|
|
|
func (the *Storage2Es) SaveTheme(dataList []common_models.EsTheme) { |
|
|
@ -90,8 +89,7 @@ func (the *Storage2Es) SaveTheme(dataList []common_models.EsTheme) { |
|
|
|
`, the.themeIndex, _id, source) |
|
|
|
body.WriteString(s) |
|
|
|
} |
|
|
|
//the.esHelper.BulkWrite(the.themeIndex, body.String())
|
|
|
|
newEsHelper().BulkWrite(the.themeIndex, body.String()) |
|
|
|
the.esHelper.BulkWrite(the.themeIndex, body.String()) |
|
|
|
} |
|
|
|
func (the *Storage2Es) SaveVib(dataList []common_models.EsVbRaw) { |
|
|
|
body := strings.Builder{} |
|
|
@ -105,8 +103,7 @@ func (the *Storage2Es) SaveVib(dataList []common_models.EsVbRaw) { |
|
|
|
`, the.vibIndex, _id, source) |
|
|
|
body.WriteString(s) |
|
|
|
} |
|
|
|
//the.esHelper.BulkWrite(the.vibIndex, body.String())
|
|
|
|
newEsHelper().BulkWrite(the.vibIndex, body.String()) |
|
|
|
the.esHelper.BulkWrite(the.vibIndex, body.String()) |
|
|
|
} |
|
|
|
|
|
|
|
// SaveGroupTheme 分组主题数据写入ES
|
|
|
|