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

Cannot click beyond page 1000 of search results #125

Open
stefanabreitwieser opened this issue Feb 28, 2019 · 2 comments
Open

Cannot click beyond page 1000 of search results #125

stefanabreitwieser opened this issue Feb 28, 2019 · 2 comments

Comments

@stefanabreitwieser
Copy link
Collaborator

This is pretty low-priority, but I was experimenting with some searching, and I noticed that it's impossible to move beyond page 1000 of the search results. If you try to access page 1001 or higher, it returns: Server Error (500).

@jraddaoui
Copy link
Collaborator

Hi @stefanabreitwieser,

Right! You're hitting Elasticsearch pagination limit, some notes from their docs:

The options we have to avoid this issue are:

  1. Increase the index.max_result_window setting value, which also increases the cost of the queries but allows to go over the 1000 page. The question would be, where do we set it?
  2. Limit pagination to a fair amount of results and show a notification page when the limit is reached. Combined with some tweaks in the pager to avoid showing pages over the limit.

The other solutions mentioned in their docs (using the Scroll or Search After APIs) are not an option for us because they don't allow to go to an intermediate page and the Scroll API doesn't return aggregations.

Option 1 won't require development time but I'd suggest to go with option 2. With the alternative sort options we have and the filters we're adding in #91, if we tweak the pager it will be rare that someone goes to the 1000+ page.

@stefanabreitwieser
Copy link
Collaborator Author

Thanks Radda! Let's shelve this for now, but keep it as something to fix if we have leftover time at the end.

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

2 participants