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

Raise result limit & make it configurable #17

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

lime
Copy link

@lime lime commented Sep 5, 2019

Summary

This PR changes the search to return as many results as possible instead of the default 10. It also exposes this as a configurable setting.

Other Information

The MediaWiki default is to return 10 results per search, which means many results may be omitted if searching for a common keyword.

We've used a patch that raises the limit to 50 (arbitrarily), but looking at the API docs I found that you can pass max as the limit to return all results (500 seems to be the actual maximum).

We've used these changes for a while now, and have not had any issues. The results page accommodates even long lists of results very well.

I didn't add any tests as there weren't any existing ones for the search params, but I'm open to suggestions. :)

Copyright assignment

I agree to the Contributor's Agreement and assign all rights, including copyright, to these Contributions to Security Roots.

@lime lime requested a review from dormi January 11, 2021 10:10
@dormi dormi requested review from aapomm and removed request for dormi January 11, 2021 10:14
Base automatically changed from master to main February 16, 2021 13:20
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.

2 participants