spraakbanken / karp-backend

Karp backend
MIT License
3 stars 2 forks source link

Deep pagination #279

Open majsan opened 5 months ago

majsan commented 5 months ago

Elasticsearch does not return values when from + size is bigger than 10000. The exact number is configurable, but it might have low performance / high memory usage if set too high. Scroll or search_after is an alternative.

To fix this issue, at least give a good error message instead of "internal server error".