CDRH / orchid

Rails Engine for site integration with CDRH API
MIT License
3 stars 0 forks source link

search results and pagination #294

Open wkdewey opened 8 months ago

wkdewey commented 8 months ago

because of Elasticsearch limitations on retrieving more than 10000 results (which we may or may not be able to get around), if you page past 200 pages, the API and therefore Orchid will throw an error. https://whitman-dev.unl.edu/whitmanarchive_rails/search?page=201 is an example If we can't get around this with the queries to ES, we need to limit the paginator and handle the error if people try to page too far.

karindalziel commented 8 months ago

code in PSFP that addresses this (old orchid version) https://github.com/CDRH/prairie_forestry/pull/80/files