Merge branch 'master' into master
This commit is contained in:
commit
9cdcdc171a
|
@ -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...)
|
||||||
|
|
Loading…
Reference in New Issue