Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Allow repeating the search with a different limit #263

@neongreen

Description

@neongreen

Currently we limit the search to 1000 matches. It saves our resources when the user is not interested in seeing all the matches (I'd bet that most of the time people only care about the first page).

However, sometimes the user needs to know exactly how many matches there are (e.g. to compare two alternatives), and then the 1000+ restriction is inconvenient. We should allow repeating the search with a higher match limit (e.g. 10000+) when the user gets 1000+ matches.

  • Add a query parameter ?limit=... that is set to 1000 by default
  • Add a config option for the maximum allowed limit
  • When the ?limit is higher than maximum, return 403 forbidden
  • When the limit is exceeded, show a button to the user ("repeat with limit = 10000")

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions