Skip to content

Commit 880dc38

Browse files
algolia-botdtyoungDan Youngshortcuts
committed
fix(ruby): Set default hits_per_page for SearchClient#browse_objects using accessor (#4253) (generated) [skip ci]
Co-authored-by: Daniel Young <[email protected]> Co-authored-by: Dan Young <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 2856fa3 commit 880dc38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/algoliasearch-client-ruby/lib/algolia/api/search_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3201,7 +3201,7 @@ def wait_for_api_key(
32013201
# @param request_options [Hash] the requestOptions to send along with the query, they will be forwarded to the `browse` method.
32023202
# @param block [Proc] the block to execute on each object of the index.
32033203
def browse_objects(index_name, browse_params = Search::BrowseParamsObject.new, request_options = {}, &block)
3204-
browse_params[:hits_per_page] = browse_params[:hits_per_page] || 1000
3204+
browse_params.hits_per_page ||= 1000
32053205

32063206
hits = []
32073207
loop do

0 commit comments

Comments
 (0)