Skip to content

Commit

Permalink
Merge branch 'main' into feat/kotlin-browse-helpers (generated)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
  • Loading branch information
algolia-bot and Fluf22 committed Oct 31, 2024
1 parent f748f92 commit 6c81491
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ public suspend fun SearchClient.browseObjects(
browse(
indexName,
params.copy(hitsPerPage = params.hitsPerPage ?: 1000, cursor = previousResponse?.cursor),
requestOptions
requestOptions,
)
},
validate = validate,
Expand Down Expand Up @@ -639,9 +639,9 @@ public suspend fun SearchClient.browseRules(
indexName,
searchRulesParams.copy(
page = if (previousResponse != null) (previousResponse.page + 1) else 0,
hitsPerPage = hitsPerPage
hitsPerPage = hitsPerPage,
),
requestOptions
requestOptions,
)
},
validate = validate ?: { response -> response.hits.count() < hitsPerPage },
Expand Down Expand Up @@ -675,9 +675,9 @@ public suspend fun SearchClient.browseSynonyms(
indexName,
searchSynonymsParams = searchSynonymsParams.copy(
page = page,
hitsPerPage = hitsPerPage
hitsPerPage = hitsPerPage,
),
requestOptions
requestOptions,
)
} finally {
page += 1
Expand Down

0 comments on commit 6c81491

Please sign in to comment.