hunk.code_window:   },
     {
       "id": "ent.elasticsearch.create_index_if_not_exists.index_mapping_failed",
       "translation": "Failed to setup Elasticsearch index mapping"
     },
     {
       "id": "ent.elasticsearch.delete_post.error",
       "translation": "Failed to delete the post"
     },
     {
  
hunk.labels: keep keep keep keep add keep keep keep keep keep
hunk.after_edit:   {
       "id": "ent.elasticsearch.data_retention_delete_indexes.get_indexes.error",
       "translation": "Failed to get Elasticsearch indexes"
     },
     {
       "id": "ent.elasticsearch.data_retention_delete_indexes.delete_index.error",
       "translation": "Failed to delete Elasticsearch index"
     },
  
hunk.file_path: i18n/en.json
hunk.type: add
file: // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
  // See License.txt for license information.
  
  package einterfaces
  
  import "github.com/mattermost/mattermost-server/model"
  
  type ElasticsearchInterface interface {
  	Start() *model.AppError
  	IndexPost(post *model.Post, teamId string) *model.AppError
  	SearchPosts(channels *model.ChannelList, searchParams []*model.SearchParams) ([]string, *model.AppError)
  	DeletePost(post *model.Post) *model.AppError
  	TestConfig(cfg *model.Config) *model.AppError
  	PurgeIndexes() *model.AppError
  }
  
  var theElasticsearchInterface ElasticsearchInterface
  
  func RegisterElasticsearchInterface(newInterface ElasticsearchInterface) {
  	theElasticsearchInterface = newInterface
  }
  
  func GetElasticsearchInterface() ElasticsearchInterface {
  	return theElasticsearchInterface
  }
  