PLT-6596: Elasticsearch interface changes. (#6993)
Этот коммит содержится в:
коммит произвёл
Saturnino Abril
родитель
58839cefb5
Коммит
f30c0b5d38
@@ -473,7 +473,7 @@ func DeletePost(postId string) (*model.Post, *model.AppError) {
|
|||||||
|
|
||||||
esInterface := einterfaces.GetElasticsearchInterface()
|
esInterface := einterfaces.GetElasticsearchInterface()
|
||||||
if esInterface != nil && *utils.Cfg.ElasticSearchSettings.EnableIndexing {
|
if esInterface != nil && *utils.Cfg.ElasticSearchSettings.EnableIndexing {
|
||||||
go esInterface.DeletePost(post.Id)
|
go esInterface.DeletePost(post)
|
||||||
}
|
}
|
||||||
|
|
||||||
InvalidateCacheForChannelPosts(post.ChannelId)
|
InvalidateCacheForChannelPosts(post.ChannelId)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ type ElasticsearchInterface interface {
|
|||||||
Start() *model.AppError
|
Start() *model.AppError
|
||||||
IndexPost(post *model.Post, teamId string) *model.AppError
|
IndexPost(post *model.Post, teamId string) *model.AppError
|
||||||
SearchPosts(channels *model.ChannelList, searchParams []*model.SearchParams) ([]string, *model.AppError)
|
SearchPosts(channels *model.ChannelList, searchParams []*model.SearchParams) ([]string, *model.AppError)
|
||||||
DeletePost(postId string) *model.AppError
|
DeletePost(post *model.Post) *model.AppError
|
||||||
TestConfig(cfg *model.Config) *model.AppError
|
TestConfig(cfg *model.Config) *model.AppError
|
||||||
PurgeIndexes() *model.AppError
|
PurgeIndexes() *model.AppError
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user