diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-09-26 07:27:04 -0700 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2018-09-26 10:27:04 -0400 |
commit | 37e00ef916af9a5aeae760a01fa0a0cf8ca93637 (patch) | |
tree | 280c92b115a4614ee74ed4bb0efcaefe9cc8454f /model/client4.go | |
parent | bfec808e53772fc79860412cd11c77ca1629739f (diff) | |
download | chat-37e00ef916af9a5aeae760a01fa0a0cf8ca93637.tar.gz chat-37e00ef916af9a5aeae760a01fa0a0cf8ca93637.tar.bz2 chat-37e00ef916af9a5aeae760a01fa0a0cf8ca93637.zip |
Adding paging to elasticsearch API. (#9425)
Diffstat (limited to 'model/client4.go')
-rw-r--r-- | model/client4.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/model/client4.go b/model/client4.go index c95aaad0b..d9034385b 100644 --- a/model/client4.go +++ b/model/client4.go @@ -2168,17 +2168,6 @@ func (c *Client4) SearchPostsWithParams(teamId string, params *SearchParameter) } } -// SearchPosts returns any posts with matching terms string including deleted channels. -func (c *Client4) SearchPostsIncludeDeletedChannels(teamId string, terms string, isOrSearch bool) (*PostList, *Response) { - requestBody := map[string]interface{}{"terms": terms, "is_or_search": isOrSearch} - if r, err := c.DoApiPost(c.GetTeamRoute(teamId)+"/posts/search?include_deleted_channels=true", StringInterfaceToJson(requestBody)); err != nil { - return nil, BuildErrorResponse(r, err) - } else { - defer closeBody(r) - return PostListFromJson(r.Body), BuildResponse(r) - } -} - // SearchPosts returns any posts with matching terms string, including . func (c *Client4) SearchPostsWithMatches(teamId string, terms string, isOrSearch bool) (*PostSearchResults, *Response) { requestBody := map[string]interface{}{"terms": terms, "is_or_search": isOrSearch} |