We know the from + size parameters in a search query are limited to 10000. In a search which returns 20k hits, and assuming each page is 1k results, it's impossible to retrieve any page beyond #10 (like page 11, from set to 10000, size set to 1000), cause then we get the error
"Result window is too large, from + size must be less than or equal to: [10000] but was [xxxx]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting."
The only alternative according to the documentation is to use the search_after parameter.
Now say I wanna browse directly to page 11, using the search_after, and without browsing through the first 10 pages. Is that even possible ?
I don't wanna have to call the repo 10 times, each one with the search_after set to the last hit on the previous page, just to get to page 11... Imagine if I have 100 pages, and I wanna see a random one, say page 67. That's 66 calls, always setting the right search_after.. it's absurd.
Is there really no another way ?