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 passing additional options for search #765

Merged
merged 4 commits into from
Nov 15, 2021

Conversation

ZakarFin
Copy link
Member

@ZakarFin ZakarFin commented Nov 15, 2021

And add common 'limit' option to request less or more results than instance default. The instance administrator can restrict the amount of results with a hard limit for searches. Related config in oskari-ext.properties:

# default limit for search results (this works like before)
search.max.results=100
# new option: hard limit for results regardless what client requests (defaults to 10x max results)
search.max.results.hardlimit=1000 

The parameters sent by the client are accessible in search channels so they can have special implementation specific handling based on the additional options/params.

@ZakarFin ZakarFin added this to the 2.6.0 milestone Nov 15, 2021
@ZakarFin ZakarFin merged commit 071393c into oskariorg:develop Nov 15, 2021
@ZakarFin ZakarFin deleted the search-params branch November 15, 2021 15:01
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 this pull request may close these issues.

1 participant