Skip to content

Commit

Permalink
fix(specs): Add context to hitsPerPage (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3969

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
  • Loading branch information
algolia-bot committed Oct 14, 2024
1 parent 9d7fd1e commit 26b56e2
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,16 @@ public SearchRecommendRulesParams setPage(Integer page) {
return this;
}

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

/** Maximum number of hits per page. minimum: 1 maximum: 1000 */
/**
* Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search
* results are displayed
* ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).
* - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`:
* specifies the page number of the search results you want to retrieve. Page numbering starts at
* 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10
* results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
* minimum: 1 maximum: 1000
*/
@javax.annotation.Nullable
public Integer getHitsPerPage() {
return hitsPerPage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,16 @@ public SearchDictionaryEntriesResponse setPage(Integer page) {
return this;
}

/** Requested page of the API response. minimum: 0 */
/**
* Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search
* results are displayed
* ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).
* - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`:
* specifies the page number of the search results you want to retrieve. Page numbering starts at
* 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10
* results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
* minimum: 0
*/
@javax.annotation.Nonnull
public Integer getPage() {
return page;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,16 @@ public SearchRulesParams setPage(Integer page) {
return this;
}

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

/** Maximum number of hits per page. minimum: 1 maximum: 1000 */
/**
* Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search
* results are displayed
* ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)).
* - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`:
* specifies the page number of the search results you want to retrieve. Page numbering starts at
* 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10
* results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
* minimum: 1 maximum: 1000
*/
@javax.annotation.Nullable
public Integer getHitsPerPage() {
return hitsPerPage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,16 @@ public SearchUserIdsResponse setHitsPerPage(Integer hitsPerPage) {
return this;
}

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

0 comments on commit 26b56e2

Please sign in to comment.