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

Allow the user to limit results using a query parameter #110

Open
MattiasSp opened this issue Jan 14, 2022 · 1 comment · May be fixed by #111
Open

Allow the user to limit results using a query parameter #110

MattiasSp opened this issue Jan 14, 2022 · 1 comment · May be fixed by #111

Comments

@MattiasSp
Copy link
Contributor

MattiasSp commented Jan 14, 2022

Related to origo-map/origo#1413 and origo-map/origo#1418.

As Origo Server admins we can use the default limit config option in dbconfig.js or set a specific limit on the search model to limit the number of hits returned by each search.

It would be great if it was possible for users to request the results with a lower limit than those in the config.

The request could then look like this:
/origoserver/search?limit={max hits per table}&q={defined in dbconfig.js}

The purpose would be to allow the same search endpoint to sometimes return the full search results and sometimes limited search results.

@MattiasSp
Copy link
Contributor Author

PR incoming.

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.

1 participant