#community-help

Querying Search Results Without Pagination

TLDR Krish inquired about fetching all search documents at once without pagination. Jason confirmed it's not possible and suggested opening a GitHub issue for the feature.

Powered by Struct AI
11
9mo
Solved
Join the chat
Dec 26, 2022 (9 months ago)
Krish
Photo of md5-7dff5651efcba5c9cdfac93918dc7eeb
Krish
01:04 PM
is there a way to get all documents of a search result in one go without pagination?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:33 PM
You can use the documents/export endpoint, but it only supports the filter_by parameter
01:33
Jason
01:33 PM
If you need to use other search params, you would have to make sequential search calls with per_page and page
Krish
Photo of md5-7dff5651efcba5c9cdfac93918dc7eeb
Krish
01:33 PM
I am only looking to send all the results of the search (without pagination)
01:34
Krish
01:34 PM
is this possible?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:34 PM
No, there’s no way to do this without pagination
Krish
Photo of md5-7dff5651efcba5c9cdfac93918dc7eeb
Krish
01:34 PM
ok
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
01:35 PM
Could you open a GitHub issue with this feature request? I’ve heard this a few times now. Would be great to track interest in the feature
Krish
Photo of md5-7dff5651efcba5c9cdfac93918dc7eeb
Krish
01:36 PM
I can, but I personally don't like this. pagination is the optimal way forward. I was only enquiring to prove via experiments that sending data in chunks is far more optimal than sending all at once.
01:37
Krish
01:37 PM
If you still want me to open an issue i'll do it. Just let me know 🙂
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
02:20 PM
Ah ok! No worries then!