diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2018-06-19 05:46:29 -0400 |
---|---|---|
committer | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2018-06-19 11:46:29 +0200 |
commit | 226d4b2ac8888646271b9e9e83a513cd6e62d620 (patch) | |
tree | b79a3eff5768f4b9f589b78a7e18324a53cf8e5b /einterfaces | |
parent | 6d8140337ef0f68f5177988f3c87bba5e4946399 (diff) | |
download | chat-226d4b2ac8888646271b9e9e83a513cd6e62d620.tar.gz chat-226d4b2ac8888646271b9e9e83a513cd6e62d620.tar.bz2 chat-226d4b2ac8888646271b9e9e83a513cd6e62d620.zip |
MM-6992 Added highlighting to elasticsearch results (#8861)
* MM-6992 Added highlighting to elasticsearch results
* Added a unique type for post search matches
* Fixed Elasticsearch matches not being sent through API
Diffstat (limited to 'einterfaces')
-rw-r--r-- | einterfaces/elasticsearch.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/einterfaces/elasticsearch.go b/einterfaces/elasticsearch.go index 5582fd4e8..1b7444b2b 100644 --- a/einterfaces/elasticsearch.go +++ b/einterfaces/elasticsearch.go @@ -12,7 +12,7 @@ import ( type ElasticsearchInterface interface { Start() *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.PostSearchMatches, *model.AppError) DeletePost(post *model.Post) *model.AppError TestConfig(cfg *model.Config) *model.AppError PurgeIndexes() *model.AppError |