You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: templates/ruby/search_helpers.mustache
+25-12Lines changed: 25 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -48,15 +48,17 @@ end
48
48
# @param timeout [Proc] the function to decide how long to wait between retries.
49
49
# @param request_options [Hash] the requestOptions to send along with the query, they will be forwarded to the `getApikey` method and merged with the transporter requestOptions.
50
50
# @return [Http::Response] the last get_api_key response
break if res.hits.length < search_rules_params.hits_per_page
143
+
search_rules_params[:page] += 1
144
+
break if res.hits.length < search_rules_params[:hitsPerPage]
136
145
end
137
146
138
147
rules unless block_given?
@@ -144,7 +153,11 @@ end
144
153
# @param search_synonyms_params [SearchSynonymsParams] the parameters to send along with the query, they will be forwarded to the `searchSynonyms` method.
145
154
# @param request_options [Hash] the requestOptions to send along with the query, they will be forwarded to the `searchSynonyms` method.
146
155
# @param block [Proc] the block to execute on each synonym of the index.
0 commit comments