Skip to content

Commit 5866c29

Browse files
gazconroyGary Conroymillotp
authored
fix(specs): Add context to hitsPerPage (#3969)
Co-authored-by: Gary Conroy <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent f3b8108 commit 5866c29

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

specs/common/parameters.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,15 @@ hitsPerPage:
130130
default: 20
131131
minimum: 1
132132
maximum: 1000
133-
description: Maximum number of hits per page.
133+
description: |
134+
Maximum number of hits per page.
135+
136+
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/)).
137+
138+
- `hitsPerPage`: sets the number of search results (_hits_) displayed per page.
139+
- `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.
140+
141+
For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
134142
135143
query:
136144
type: string
@@ -140,7 +148,15 @@ query:
140148
page:
141149
type: integer
142150
minimum: 0
143-
description: Requested page of the API response.
151+
description: |
152+
Requested page of the API response.
153+
154+
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/)).
155+
156+
- `hitsPerPage`: sets the number of search results (_hits_) displayed per page.
157+
- `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.
158+
159+
For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
144160
145161
count:
146162
description: Number of occurrences.

0 commit comments

Comments
 (0)