Set the number of search results on the search page

Quick question: The solr search results page is paginated every 10 results.

Is there a way to set a different number of search results? Say 5 or 50 rather than the current 10?

Thanks.

Just checked the source code and saw that you can pass a query string parameter, for ex rows=50, as in http://localhost:8080/xwiki/bin/view/Main/Search?text=test&f_type=DOCUMENT&f_locale=en&f_locale=&r=1&rows=50.

If not defined, 10 is used, see https://github.com/xwiki/xwiki-platform/blob/07c0927c9bf1a6a48db4ef8deb286f16d6e7c1b7/xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-solr/xwiki-platform-search-solr-ui/src/main/resources/Main/SolrSearchMacros.xml#L822

So you could change that page in your wiki if you want to change that default value.

That works for me.

Thanks.