#community-help

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.

Powered by Struct AI
Feb 12, 2022 (19 months ago)
Radi
Photo of md5-e18fd6bf1ed8f3adba05f7061edef1e1
Radi
06:10 PM
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?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:14 PM
Radi Radi Radi 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.
10:16
Jason
10:16 PM
Wonder why Slack at mentioned you multiple times (at least on my phone)
10:17
Jason
10:17 PM
Could you describe your use case for not wanting pagination?
Feb 13, 2022 (19 months ago)
Radi
Photo of md5-e18fd6bf1ed8f3adba05f7061edef1e1
Radi
01:22 AM
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