h
h copied to clipboard
HTTP 5xx error when viewing high page numbers in search results
trafficstars
Steps to reproduce
- Go to https://hypothes.is/groups/world/public?page=100
- Go to https://hypothes.is/groups/world/public?page=900
Expected behaviour
Different results should be displayed.
Actual behaviour
The same results page is displayed. The effective page number gets capped at some limit. I'm guessing this is around the (page_number / 10_000) mark.
Notes
Browsing to the N-hundredth page (with 200 annotations per page) is not something that Elasticsearch efficiently supports. We might simply want to change the UI so that it doesn't show links to high page numbers at the bottom, which makes the issue more noticeable.
The behavior changed following some recent changes to how offset and limit are handled within the API. I removed the "Upgrade Elasticsearch" label because this is no longer within the scope of that project.