summaryrefslogtreecommitdiffstats
path: root/einterfaces
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-09-26 07:27:04 -0700
committerHarrison Healey <harrisonmhealey@gmail.com>2018-09-26 10:27:04 -0400
commit37e00ef916af9a5aeae760a01fa0a0cf8ca93637 (patch)
tree280c92b115a4614ee74ed4bb0efcaefe9cc8454f /einterfaces
parentbfec808e53772fc79860412cd11c77ca1629739f (diff)
downloadchat-37e00ef916af9a5aeae760a01fa0a0cf8ca93637.tar.gz
chat-37e00ef916af9a5aeae760a01fa0a0cf8ca93637.tar.bz2
chat-37e00ef916af9a5aeae760a01fa0a0cf8ca93637.zip
Adding paging to elasticsearch API. (#9425)
Diffstat (limited to 'einterfaces')
-rw-r--r--einterfaces/elasticsearch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/einterfaces/elasticsearch.go b/einterfaces/elasticsearch.go
index bf24dc577..92c726d25 100644
--- a/einterfaces/elasticsearch.go
+++ b/einterfaces/elasticsearch.go
@@ -13,7 +13,7 @@ type ElasticsearchInterface interface {
Start() *model.AppError
Stop() *model.AppError
IndexPost(post *model.Post, teamId string) *model.AppError
- SearchPosts(channels *model.ChannelList, searchParams []*model.SearchParams) ([]string, model.PostSearchMatches, *model.AppError)
+ SearchPosts(channels *model.ChannelList, searchParams []*model.SearchParams, page, perPage int) ([]string, model.PostSearchMatches, *model.AppError)
DeletePost(post *model.Post) *model.AppError
TestConfig(cfg *model.Config) *model.AppError
PurgeIndexes() *model.AppError