Skip to content

Commit 26b56e2

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

File tree

4 files changed

+60
-6
lines changed

4 files changed

+60
-6
lines changed

algoliasearch/src/main/java/com/algolia/model/recommend/SearchRecommendRulesParams.java

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,16 @@ public SearchRecommendRulesParams setPage(Integer page) {
6363
return this;
6464
}
6565

66-
/** Requested page of the API response. minimum: 0 */
66+
/**
67+
* Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search
68+
* results are displayed
69+
* ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).
70+
* - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`:
71+
* specifies the page number of the search results you want to retrieve. Page numbering starts at
72+
* 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10
73+
* results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
74+
* minimum: 0
75+
*/
6776
@javax.annotation.Nullable
6877
public Integer getPage() {
6978
return page;
@@ -74,7 +83,16 @@ public SearchRecommendRulesParams setHitsPerPage(Integer hitsPerPage) {
7483
return this;
7584
}
7685

77-
/** Maximum number of hits per page. minimum: 1 maximum: 1000 */
86+
/**
87+
* Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search
88+
* results are displayed
89+
* ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).
90+
* - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`:
91+
* specifies the page number of the search results you want to retrieve. Page numbering starts at
92+
* 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10
93+
* results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
94+
* minimum: 1 maximum: 1000
95+
*/
7896
@javax.annotation.Nullable
7997
public Integer getHitsPerPage() {
8098
return hitsPerPage;

algoliasearch/src/main/java/com/algolia/model/search/SearchDictionaryEntriesResponse.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,16 @@ public SearchDictionaryEntriesResponse setPage(Integer page) {
4545
return this;
4646
}
4747

48-
/** Requested page of the API response. minimum: 0 */
48+
/**
49+
* Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search
50+
* results are displayed
51+
* ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).
52+
* - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`:
53+
* specifies the page number of the search results you want to retrieve. Page numbering starts at
54+
* 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10
55+
* results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
56+
* minimum: 0
57+
*/
4958
@javax.annotation.Nonnull
5059
public Integer getPage() {
5160
return page;

algoliasearch/src/main/java/com/algolia/model/search/SearchRulesParams.java

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,16 @@ public SearchRulesParams setPage(Integer page) {
6666
return this;
6767
}
6868

69-
/** Requested page of the API response. minimum: 0 */
69+
/**
70+
* Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search
71+
* results are displayed
72+
* ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).
73+
* - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`:
74+
* specifies the page number of the search results you want to retrieve. Page numbering starts at
75+
* 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10
76+
* results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
77+
* minimum: 0
78+
*/
7079
@javax.annotation.Nullable
7180
public Integer getPage() {
7281
return page;
@@ -77,7 +86,16 @@ public SearchRulesParams setHitsPerPage(Integer hitsPerPage) {
7786
return this;
7887
}
7988

80-
/** Maximum number of hits per page. minimum: 1 maximum: 1000 */
89+
/**
90+
* Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search
91+
* results are displayed
92+
* ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).
93+
* - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`:
94+
* specifies the page number of the search results you want to retrieve. Page numbering starts at
95+
* 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10
96+
* results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
97+
* minimum: 1 maximum: 1000
98+
*/
8199
@javax.annotation.Nullable
82100
public Integer getHitsPerPage() {
83101
return hitsPerPage;

algoliasearch/src/main/java/com/algolia/model/search/SearchUserIdsResponse.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,16 @@ public SearchUserIdsResponse setHitsPerPage(Integer hitsPerPage) {
7070
return this;
7171
}
7272

73-
/** Maximum number of hits per page. minimum: 1 maximum: 1000 */
73+
/**
74+
* Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search
75+
* results are displayed
76+
* ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).
77+
* - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`:
78+
* specifies the page number of the search results you want to retrieve. Page numbering starts at
79+
* 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10
80+
* results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
81+
* minimum: 1 maximum: 1000
82+
*/
7483
@javax.annotation.Nonnull
7584
public Integer getHitsPerPage() {
7685
return hitsPerPage;

0 commit comments

Comments
 (0)