You might just be limited by your Confluence version here. In newer versions, there's a setting in the UI to tweak this. From the documentation:
To specify how many results should be shown per page,
click a number '10', '20', '50' or '100' near the top of the page.
Ah ok, got it. If you don't want to change the source code or write a plugin, one way to hack your way through this would be to add a mod_rewrite rule that adds those parameters to your URL. Click on 20 or 50 and check the URL - you can add all those parameters when you hit the default path. Not ideal - ideally you'd write a plugin for this - but it'd be a lot easier, especially if you're already using Apache in front of Confluence.
Do you want to modify this in the code?
More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs