Skip to content

Commit 243d4fa

Browse files
committed
fix(specs): Add context to hitsPerPage (generated)
algolia/api-clients-automation#3969 Co-authored-by: algolia-bot <[email protected]>
1 parent 33a3024 commit 243d4fa

File tree

4 files changed

+36
-6
lines changed

4 files changed

+36
-6
lines changed

src/main/scala/algoliasearch/recommend/SearchRecommendRulesParams.scala

+12-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,19 @@ package algoliasearch.recommend
3636
* @param context
3737
* Only search for rules with matching context.
3838
* @param page
39-
* Requested page of the API response.
39+
* Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are
40+
* displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).
41+
* \- `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page
42+
* number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the
43+
* second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set
44+
* `hitsPerPage` to 10 and `page` to 2.
4045
* @param hitsPerPage
41-
* Maximum number of hits per page.
46+
* Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search results are displayed
47+
* ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). -
48+
* `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number
49+
* of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second
50+
* is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set
51+
* `hitsPerPage` to 10 and `page` to 2.
4252
* @param enabled
4353
* Whether to only show rules where the value of their `enabled` property matches this parameter. If absent, show all
4454
* rules, regardless of their `enabled` property.

src/main/scala/algoliasearch/search/SearchDictionaryEntriesResponse.scala

+6-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ package algoliasearch.search
3838
* @param hits
3939
* Dictionary entries matching the search criteria.
4040
* @param page
41-
* Requested page of the API response.
41+
* Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are
42+
* displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).
43+
* \- `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page
44+
* number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the
45+
* second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set
46+
* `hitsPerPage` to 10 and `page` to 2.
4247
* @param nbHits
4348
* Number of results (hits).
4449
* @param nbPages

src/main/scala/algoliasearch/search/SearchRulesParams.scala

+12-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,19 @@ import algoliasearch.search.Anchoring._
4242
* @param context
4343
* Only return rules that match the context (exact match).
4444
* @param page
45-
* Requested page of the API response.
45+
* Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are
46+
* displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).
47+
* \- `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page
48+
* number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the
49+
* second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set
50+
* `hitsPerPage` to 10 and `page` to 2.
4651
* @param hitsPerPage
47-
* Maximum number of hits per page.
52+
* Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search results are displayed
53+
* ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). -
54+
* `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number
55+
* of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second
56+
* is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set
57+
* `hitsPerPage` to 10 and `page` to 2.
4858
* @param enabled
4959
* If `true`, return only enabled rules. If `false`, return only inactive rules. By default, _all_ rules are
5060
* returned.

src/main/scala/algoliasearch/search/SearchUserIdsResponse.scala

+6-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ package algoliasearch.search
4242
* @param page
4343
* Page of search results to retrieve.
4444
* @param hitsPerPage
45-
* Maximum number of hits per page.
45+
* Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search results are displayed
46+
* ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). -
47+
* `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number
48+
* of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second
49+
* is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set
50+
* `hitsPerPage` to 10 and `page` to 2.
4651
* @param updatedAt
4752
* Date and time when the object was updated, in RFC 3339 format.
4853
*/

0 commit comments

Comments
 (0)