Skip to content

Commit

Permalink
scroll in search dsl
Browse files Browse the repository at this point in the history
  • Loading branch information
nwolff committed May 22, 2014
1 parent cc8086a commit 6f1caca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions search/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,8 @@ func (s *SearchDsl) Sort(sort ...*SortDsl) *SearchDsl {
s.SortBody = append(s.SortBody, sort...)
return s
}

func (s *SearchDsl) Scroll(duration string) *SearchDsl {
s.args["scroll"] = duration
return s
}

0 comments on commit 6f1caca

Please sign in to comment.