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

Stats in response not correct (total page count) #185

Closed
johannesliem opened this issue Jul 21, 2023 · 0 comments · Fixed by #188
Closed

Stats in response not correct (total page count) #185

johannesliem opened this issue Jul 21, 2023 · 0 comments · Fixed by #188
Assignees

Comments

@johannesliem
Copy link
Member

The total number of pages is not correct for the entities search endpoint (at least for an "empty" search); more pages than the listed number ("pages") are available; might be connected to the "provided entities"?

Is the number of total entities correct ("count")?

https://intavia-backend.acdh-dev.oeaw.ac.at/v2/api/entities/search?datasets=http%3A%2F%2Fapis.acdh.oeaw.ac.at%2Fdata%2Fv5&datasets=http%3A%2F%2Fldf.fi%2Fnbf%2Fdata&datasets=http%3A%2F%2Fwww.intavia.eu%2Fsbi&datasets=http%3A%2F%2Fdata.acdh.oeaw.ac.at%2Fintavia%2Fcho%2Fv6&datasets=http%3A%2F%2Fdata.biographynet.nl&page=6400&limit=50

{
"count": 317768,
"page": 6400,
"pages": 6356,
"results": [...]
}

The frontend uses these values for the pagination of search results:
https://intavia.acdh-dev.oeaw.ac.at/search?page=6356 // "last" page
https://intavia.acdh-dev.oeaw.ac.at/search?page=6357 // accessible only via URL not via pagination interface

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

Successfully merging a pull request may close this issue.

2 participants