|
1
|
/** |
|
2
|
* @schema SearchResultMetadata |
|
3
|
* type: object |
|
4
|
* description: The pagination and timing details of a search result. |
|
5
|
* x-schemaName: SearchResultMetadata |
|
6
|
* required: |
|
7
|
* - skip |
|
8
|
* - take |
|
9
|
* - count |
|
10
|
* properties: |
|
11
|
* skip: |
|
12
|
* type: number |
|
13
|
* title: skip |
|
14
|
* description: The number of documents skipped before the returned hits. |
|
15
|
* take: |
|
16
|
* type: number |
|
17
|
* title: take |
|
18
|
* description: The maximum number of hits returned. |
|
19
|
* count: |
|
20
|
* type: number |
|
21
|
* title: count |
|
22
|
* description: The total number of matching documents. Most providers only estimate it, and it's `null` when the query sets its `count` strategy to `none`. |
|
23
|
* next_cursor: |
|
24
|
* type: string |
|
25
|
* title: next_cursor |
|
26
|
* description: The cursor to pass in the next query's pagination to retrieve the next page, on providers that paginate with cursors. |
|
27
|
* query: |
|
28
|
* type: string |
|
29
|
* title: query |
|
30
|
* description: The free-text query that the result was computed for. |
|
31
|
* processing_time_ms: |
|
32
|
* type: number |
|
33
|
* title: processing_time_ms |
|
34
|
* description: How long the search engine took to run the query, in milliseconds. |
|
35
|
* |
|
36
|
*/ |
|
37
|
|