Skip to content

Commit b2f3fdb

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

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

lib/Api/RecommendClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,8 @@ public function getRecommendations($getRecommendationsParams, $requestOptions =
571571
* @param array $searchRecommendRulesParams searchRecommendRulesParams (optional)
572572
* - $searchRecommendRulesParams['query'] => (string) Search query.
573573
* - $searchRecommendRulesParams['context'] => (string) Only search for rules with matching context.
574-
* - $searchRecommendRulesParams['page'] => (int) Requested page of the API response.
575-
* - $searchRecommendRulesParams['hitsPerPage'] => (int) Maximum number of hits per page.
574+
* - $searchRecommendRulesParams['page'] => (int) 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.
575+
* - $searchRecommendRulesParams['hitsPerPage'] => (int) 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.
576576
* - $searchRecommendRulesParams['enabled'] => (bool) Whether to only show rules where the value of their `enabled` property matches this parameter. If absent, show all rules, regardless of their `enabled` property.
577577
* - $searchRecommendRulesParams['filters'] => (string) Filter expression. This only searches for rules matching the filter expression.
578578
* - $searchRecommendRulesParams['facets'] => (array) Include facets and facet values in the response. Use `['*']` to include all facets.

lib/Api/SearchClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2443,8 +2443,8 @@ public function searchForFacetValues($indexName, $facetName, $searchForFacetValu
24432443
* - $searchRulesParams['query'] => (string) Search query for rules.
24442444
* - $searchRulesParams['anchoring'] => (array)
24452445
* - $searchRulesParams['context'] => (string) Only return rules that match the context (exact match).
2446-
* - $searchRulesParams['page'] => (int) Requested page of the API response.
2447-
* - $searchRulesParams['hitsPerPage'] => (int) Maximum number of hits per page.
2446+
* - $searchRulesParams['page'] => (int) 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.
2447+
* - $searchRulesParams['hitsPerPage'] => (int) 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.
24482448
* - $searchRulesParams['enabled'] => (bool) If `true`, return only enabled rules. If `false`, return only inactive rules. By default, _all_ rules are returned.
24492449
*
24502450
* @see SearchRulesParams

lib/Model/Recommend/SearchRecommendRulesParams.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public function getPage()
270270
/**
271271
* Sets page.
272272
*
273-
* @param null|int $page requested page of the API response
273+
* @param null|int $page 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.
274274
*
275275
* @return self
276276
*/
@@ -294,7 +294,7 @@ public function getHitsPerPage()
294294
/**
295295
* Sets hitsPerPage.
296296
*
297-
* @param null|int $hitsPerPage maximum number of hits per page
297+
* @param null|int $hitsPerPage 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.
298298
*
299299
* @return self
300300
*/

lib/Model/Search/SearchDictionaryEntriesResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function getPage()
227227
/**
228228
* Sets page.
229229
*
230-
* @param int $page requested page of the API response
230+
* @param int $page 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.
231231
*
232232
* @return self
233233
*/

lib/Model/Search/SearchRulesParams.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public function getPage()
278278
/**
279279
* Sets page.
280280
*
281-
* @param null|int $page requested page of the API response
281+
* @param null|int $page 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.
282282
*
283283
* @return self
284284
*/
@@ -302,7 +302,7 @@ public function getHitsPerPage()
302302
/**
303303
* Sets hitsPerPage.
304304
*
305-
* @param null|int $hitsPerPage maximum number of hits per page
305+
* @param null|int $hitsPerPage 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.
306306
*
307307
* @return self
308308
*/

lib/Model/Search/SearchUserIdsResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public function getHitsPerPage()
288288
/**
289289
* Sets hitsPerPage.
290290
*
291-
* @param int $hitsPerPage maximum number of hits per page
291+
* @param int $hitsPerPage 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.
292292
*
293293
* @return self
294294
*/

0 commit comments

Comments
 (0)