Hello OS,
we are using /search service in our backend. Default size=100 but we need all search results something like /search/?size=all
We do not want to hardcode a specific number e.q. 10.000.000
Is this possible?
Thank You
Hello Dennis,
it is not recommended and thus not supported to get all search results at once since with big resultsets you will sooner or later exceed the memory limits of the participating services. Our recommended best practice is to use the size parameter with a suitable value (such as 100 or 1000) in combination with the offset parameter and scroll through all available result objects.
Regards Nicolai
380 questions
505 answers
407 comments
178 users