Commit aa370c38f9b30fe56b99fbf2b70221c8871ba952
1 parent
4d5c210c
Exists in
master
and in
17 other branches
Don't need from when 0
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/searchkick/query.rb
... | ... | @@ -502,7 +502,7 @@ module Searchkick |
502 | 502 | pagination_options = options[:page] || options[:limit] || options[:per_page] || options[:offset] || options[:padding] |
503 | 503 | if !options[:body] || pagination_options |
504 | 504 | payload[:size] = per_page |
505 | - payload[:from] = offset | |
505 | + payload[:from] = offset if offset > 0 | |
506 | 506 | end |
507 | 507 | |
508 | 508 | # type | ... | ... |