Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue paginating beyond 10K results #53

Open
nonword opened this issue Jul 11, 2017 · 0 comments
Open

Issue paginating beyond 10K results #53

nonword opened this issue Jul 11, 2017 · 0 comments

Comments

@nonword
Copy link
Member

nonword commented Jul 11, 2017

Reported by @ablwr on "?q=war&page=201&per_page=50" query, getting:

"error": "[query_phase_execution_exception] Result window is too large, from + size must be less than or equal to: [10000] but was [10050]. 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."

Let's consider using scroll api to use cursors instead of page for deep pagination. Or maybe for all pagination? Investigation required. Need to consider, for example, how to handle expired scroll ids.

https://www.elastic.co/guide/en/elasticsearch/reference/2.4/search-request-scroll.html

https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference-5-2.html#api-scroll-5-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant