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

Search API max count is 10k... (docs, UI) #399

Open
ChristopherChudzicki opened this issue Jan 18, 2024 · 0 comments
Open

Search API max count is 10k... (docs, UI) #399

ChristopherChudzicki opened this issue Jan 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ChristopherChudzicki
Copy link
Contributor

The https://mitopen-rc.odl.mit.edu/api/v1/content_file_search/ API endpoint includes a count: number property in its response. However, this value maxes out at 10k.

See https://mitopen-rc.odl.mit.edu/api/v1/content_file_search/ for example.

The 10k value is inaccurate.

To-do:

This may be a technical limitation of opensearch. From https://opensearch.org/docs/latest/search-plugins/searching-data/paginate/

The from and size parameters allow you to paginate your search results but with a limit of 10,000 results at a time.

Though there appear to be other pagination options.

If supporting pagination beyond 10k is a pain, we could at least document the fact that 10k is the max count returned from our APIs. Our UIs could show 10,000+ in these cases.

@ChristopherChudzicki ChristopherChudzicki added the bug Something isn't working label Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant