The search endpoint has a limit of 250 items
per page, so you would have to paginate over multiple api calls to fetch all results.
If you only need to use filter_by, then you can use the export endpoint to fetch all documents without pagination. But this endpoint does not support the
q
parameter