Skip to content

Commit 6e71ad1

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

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

algoliasearch/recommend/models/search_recommend_rules_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ class SearchRecommendRulesParams(BaseModel):
4444
context: Optional[str] = None
4545
""" Only search for rules with matching context. """
4646
page: Optional[int] = None
47-
""" Requested page of the API response. """
47+
""" 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. """
4848
hits_per_page: Optional[int] = None
49-
""" Maximum number of hits per page. """
49+
""" 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. """
5050
enabled: Optional[bool] = None
5151
""" 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. """
5252
filters: Optional[str] = None

algoliasearch/search/models/search_dictionary_entries_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class SearchDictionaryEntriesResponse(BaseModel):
4040
hits: List[DictionaryEntry]
4141
""" Dictionary entries matching the search criteria. """
4242
page: int
43-
""" Requested page of the API response. """
43+
""" 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. """
4444
nb_hits: int
4545
""" Number of results (hits). """
4646
nb_pages: int

algoliasearch/search/models/search_rules_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ class SearchRulesParams(BaseModel):
4545
context: Optional[str] = None
4646
""" Only return rules that match the context (exact match). """
4747
page: Optional[int] = None
48-
""" Requested page of the API response. """
48+
""" 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. """
4949
hits_per_page: Optional[int] = None
50-
""" Maximum number of hits per page. """
50+
""" 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. """
5151
enabled: Optional[bool] = None
5252
""" If `true`, return only enabled rules. If `false`, return only inactive rules. By default, _all_ rules are returned. """
5353

algoliasearch/search/models/search_user_ids_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class SearchUserIdsResponse(BaseModel):
4545
page: int
4646
""" Page of search results to retrieve. """
4747
hits_per_page: int
48-
""" Maximum number of hits per page. """
48+
""" 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. """
4949
updated_at: str
5050
""" Date and time when the object was updated, in RFC 3339 format. """
5151

0 commit comments

Comments
 (0)