Loïc
05/05/2022, 7:21 PMper_page
Number of results to fetch per page.
When group_by is used, per_page refers to the number of groups to fetch per page, in order to properly preserve pagination.
Default: 10
NOTE: Only up to 250 hits (or groups of hits when using group_by) can be fetched per page.
However, if I launch a request like:
final searchParameters = {
'q': '',
'query_by': 'genericTicker',
'filter_by': 'dateLastUpdate:>=${lastUpdateTimestamp.toString()}',
'limit_hits': '1000000',
};
it only returns 10 results. In order to force more results I have to add 'per_page': '250'
but it is limited to 250, I cannot receive all the documents in the collection.
The documentation gives this 250 limit for group_by
but not for filter_by
How can I get all the results from the collection without limit when I use filter_by
?Jason Bosco
05/05/2022, 7:23 PMLoïc
05/05/2022, 7:28 PMawait client.collection('companies').documents.exportJSONL();
Jason Bosco
05/05/2022, 7:29 PMLoïc
05/05/2022, 7:30 PM401: {"message": "Forbidden - a valid `x-typesense-api-key` header must be sent."}
Jason Bosco
05/05/2022, 7:31 PMdocuments:export
permissionLoïc
05/05/2022, 7:46 PMJason Bosco
05/05/2022, 7:46 PMJason Bosco
05/05/2022, 7:47 PMLoïc
05/05/2022, 7:48 PMJason Bosco
05/05/2022, 7:48 PM