Skip to content

Commit cca119e

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

File tree

4 files changed

+42
-6
lines changed

4 files changed

+42
-6
lines changed

Sources/Recommend/Models/SearchRecommendRulesParams.swift

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,21 @@ public struct SearchRecommendRulesParams: Codable, JSONEncodable {
1212
public var query: String?
1313
/// Only search for rules with matching context.
1414
public var context: String?
15-
/// Requested page of the API response.
15+
/// Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are
16+
/// displayed
17+
/// ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). -
18+
/// `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page
19+
/// number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`,
20+
/// the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page,
21+
/// set `hitsPerPage` to 10 and `page` to 2.
1622
public var page: Int?
17-
/// Maximum number of hits per page.
23+
/// Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search results are
24+
/// displayed
25+
/// ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). -
26+
/// `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page
27+
/// number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`,
28+
/// the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page,
29+
/// set `hitsPerPage` to 10 and `page` to 2.
1830
public var hitsPerPage: Int?
1931
/// Whether to only show rules where the value of their `enabled` property matches this parameter. If absent, show
2032
/// all rules, regardless of their `enabled` property.

Sources/Search/Models/SearchDictionaryEntriesResponse.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ import Foundation
99
public struct SearchDictionaryEntriesResponse: Codable, JSONEncodable {
1010
/// Dictionary entries matching the search criteria.
1111
public var hits: [DictionaryEntry]
12-
/// Requested page of the API response.
12+
/// Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are
13+
/// displayed
14+
/// ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). -
15+
/// `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page
16+
/// number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`,
17+
/// the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page,
18+
/// set `hitsPerPage` to 10 and `page` to 2.
1319
public var page: Int
1420
/// Number of results (hits).
1521
public var nbHits: Int

Sources/Search/Models/SearchRulesParams.swift

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,21 @@ public struct SearchRulesParams: Codable, JSONEncodable {
1313
public var anchoring: SearchAnchoring?
1414
/// Only return rules that match the context (exact match).
1515
public var context: String?
16-
/// Requested page of the API response.
16+
/// Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are
17+
/// displayed
18+
/// ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). -
19+
/// `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page
20+
/// number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`,
21+
/// the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page,
22+
/// set `hitsPerPage` to 10 and `page` to 2.
1723
public var page: Int?
18-
/// Maximum number of hits per page.
24+
/// Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search results are
25+
/// displayed
26+
/// ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). -
27+
/// `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page
28+
/// number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`,
29+
/// the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page,
30+
/// set `hitsPerPage` to 10 and `page` to 2.
1931
public var hitsPerPage: Int?
2032
/// If `true`, return only enabled rules. If `false`, return only inactive rules. By default, _all_ rules are
2133
/// returned.

Sources/Search/Models/SearchUserIdsResponse.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ public struct SearchUserIdsResponse: Codable, JSONEncodable {
1414
public var nbHits: Int
1515
/// Page of search results to retrieve.
1616
public var page: Int
17-
/// Maximum number of hits per page.
17+
/// Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search results are
18+
/// displayed
19+
/// ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). -
20+
/// `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page
21+
/// number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`,
22+
/// the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page,
23+
/// set `hitsPerPage` to 10 and `page` to 2.
1824
public var hitsPerPage: Int
1925
/// Date and time when the object was updated, in RFC 3339 format.
2026
public var updatedAt: String

0 commit comments

Comments
 (0)