Disabling Pagination Limit on Returned Hits

TLDR Radi asked if the hits limit could be removed, but Jason stated that the only way was to use the documents export endpoint which is not quite what Radi required, resulting in a decision to adjust the pagination limit.

Photo of Radi
Radi
Sat, 12 Feb 2022 18:10:45 UTC

Q: is there a way to disable limit of hits returned? I understand for pagination we can set the limit to a max of 250. Is there a way to forget about pagination, and just return ALL results?

Photo of Jason
Jason
Sat, 12 Feb 2022 22:14:44 UTC

RadiRadiRadi Disabling pagination is not possible with the search endpoint, but you can use the documents export endpoint for this. The only restriction is that you can only use filter_by with this endpoint and not text based search.

Photo of Jason
Jason
Sat, 12 Feb 2022 22:16:01 UTC

Wonder why Slack at mentioned you multiple times (at least on my phone)

Photo of Jason
Jason
Sat, 12 Feb 2022 22:17:55 UTC

Could you describe your use case for not wanting pagination?

Photo of Radi
Radi
Sun, 13 Feb 2022 01:22:43 UTC

The use case is not wanting to implement pagination right now. There's a lot of edge cases to account for, and I don't think its the highest-leverage feature for my product atm documents export looks interesting but not exactly what I'm looking for. I'm looking to retrieve all results for query `q` I think I'll just bump pagination up the backlog haha