Commit 25e13308a0c9cd1e411c96a4a2b8a9b1e5f6a617
1 parent
4651b23a
Exists in
master
and in
21 other branches
Better example
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
README.md
... | ... | @@ -90,9 +90,9 @@ order: {_score: :desc} # most relevant first - default |
90 | 90 | Paginate |
91 | 91 | |
92 | 92 | ```ruby |
93 | -limit: 50, offset: 1000 | |
94 | -# or | |
95 | -page: 1, per_page: 20 # works with will_paginate and kaminari | |
93 | +limit: 20, offset: 60 | |
94 | +# or equivalently | |
95 | +page: 4, per_page: 20 # works with will_paginate and kaminari | |
96 | 96 | ``` |
97 | 97 | |
98 | 98 | Boost by a field | ... | ... |