From 37e00ef916af9a5aeae760a01fa0a0cf8ca93637 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Wed, 26 Sep 2018 07:27:04 -0700 Subject: Adding paging to elasticsearch API. (#9425) --- model/post.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'model/post.go') diff --git a/model/post.go b/model/post.go index 1f89cb419..5d2438fc4 100644 --- a/model/post.go +++ b/model/post.go @@ -97,9 +97,12 @@ type PostPatch struct { } type SearchParameter struct { - Terms *string `json:"terms"` - IsOrSearch *bool `json:"is_or_search"` - TimeZoneOffset *int `json:"time_zone_offset"` + Terms *string `json:"terms"` + IsOrSearch *bool `json:"is_or_search"` + TimeZoneOffset *int `json:"time_zone_offset"` + Page *int `json:"page"` + PerPage *int `json:"per_page"` + IncludeDeletedChannels *bool `json:"include_deleted_channels"` } func (o *PostPatch) WithRewrittenImageURLs(f func(string) string) *PostPatch { -- cgit v1.2.3-1-g7c22