|
1
|
/** |
|
2
|
* @schema SearchPagination |
|
3
|
* type: object |
|
4
|
* description: How a search query's results are paginated and sorted. |
|
5
|
* x-schemaName: SearchPagination |
|
6
|
* properties: |
|
7
|
* skip: |
|
8
|
* type: number |
|
9
|
* title: skip |
|
10
|
* description: The number of documents to skip before the returned hits. It's mutually exclusive with `cursor`. |
|
11
|
* take: |
|
12
|
* type: number |
|
13
|
* title: take |
|
14
|
* description: The maximum number of hits to return. |
|
15
|
* order: |
|
16
|
* type: object |
|
17
|
* description: The fields to sort the hits by, keyed by each field's dotted path. The reserved `_score` key sorts by relevance. |
|
18
|
* cursor: |
|
19
|
* type: string |
|
20
|
* title: cursor |
|
21
|
* description: An opaque provider cursor, as returned in a previous result's `metadata.next_cursor`. It's mutually exclusive with `skip`. |
|
22
|
* |
|
23
|
*/ |
|
24
|
|