diff options
Diffstat (limited to 'app/post.go')
-rw-r--r-- | app/post.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/post.go b/app/post.go index dd0b24bac..7ad072943 100644 --- a/app/post.go +++ b/app/post.go @@ -99,7 +99,7 @@ func CreatePost(post *model.Post, teamId string, triggerWebhooks bool) (*model.P rpost = result.Data.(*model.Post) } - esInterface := einterfaces.GetElasticSearchInterface() + esInterface := einterfaces.GetElasticsearchInterface() if esInterface != nil && *utils.Cfg.ElasticSearchSettings.EnableIndexing { go esInterface.IndexPost(rpost, teamId) } @@ -284,7 +284,7 @@ func UpdatePost(post *model.Post, safeUpdate bool) (*model.Post, *model.AppError } else { rpost := result.Data.(*model.Post) - esInterface := einterfaces.GetElasticSearchInterface() + esInterface := einterfaces.GetElasticsearchInterface() if esInterface != nil && *utils.Cfg.ElasticSearchSettings.EnableIndexing { go func() { if rchannel := <-Srv.Store.Channel().GetForPost(rpost.Id); rchannel.Err != nil { @@ -471,7 +471,7 @@ func DeletePost(postId string) (*model.Post, *model.AppError) { go DeletePostFiles(post) go DeleteFlaggedPosts(post.Id) - esInterface := einterfaces.GetElasticSearchInterface() + esInterface := einterfaces.GetElasticsearchInterface() if esInterface != nil && *utils.Cfg.ElasticSearchSettings.EnableIndexing { go esInterface.DeletePost(post.Id) } @@ -502,8 +502,8 @@ func DeletePostFiles(post *model.Post) { func SearchPostsInTeam(terms string, userId string, teamId string, isOrSearch bool) (*model.PostList, *model.AppError) { paramsList := model.ParseSearchParams(terms) - esInterface := einterfaces.GetElasticSearchInterface() - if esInterface != nil && *utils.Cfg.ElasticSearchSettings.EnableSearching && utils.IsLicensed && *utils.License.Features.ElasticSearch { + esInterface := einterfaces.GetElasticsearchInterface() + if esInterface != nil && *utils.Cfg.ElasticSearchSettings.EnableSearching && utils.IsLicensed && *utils.License.Features.Elasticsearch { finalParamsList := []*model.SearchParams{} for _, params := range paramsList { @@ -539,7 +539,7 @@ func SearchPostsInTeam(terms string, userId string, teamId string, isOrSearch bo return nil, err } - postIds, err := einterfaces.GetElasticSearchInterface().SearchPosts(userChannels, finalParamsList) + postIds, err := einterfaces.GetElasticsearchInterface().SearchPosts(userChannels, finalParamsList) if err != nil { return nil, err } |