Merge branch 'master' into master

This commit is contained in:
Hardy 2021-08-03 19:11:01 +08:00 committed by GitHub
commit 9cdcdc171a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ type SearchRequest struct {
source Source source Source
timeout *time.Duration timeout *time.Duration
collapse map[string]interface{} collapse map[string]interface{}
} }
// Search creates a new SearchRequest object, to be filled via method chaining. // Search creates a new SearchRequest object, to be filled via method chaining.
@ -84,6 +85,7 @@ func (req *SearchRequest) Collapse(field string) *SearchRequest {
return req return req
} }
// SearchAfter retrieve the sorted result // SearchAfter retrieve the sorted result
func (req *SearchRequest) SearchAfter(s ...interface{}) *SearchRequest { func (req *SearchRequest) SearchAfter(s ...interface{}) *SearchRequest {
req.searchAfter = append(req.searchAfter, s...) req.searchAfter = append(req.searchAfter, s...)