Pagination in apache solr search page To control the number of search results showing in a solr site search page there is a text field in admin/config/search/apachesolr/search-pages/core_search/edit 

In advanced option tab, there is an option called Results per page to specify its count. but I need to alter the pagination displayed in search page. It displays 1 to 9 pagers by default I want them to be 5. what should I alter??
This could be done by using theme_pager in TEMPLATE.PHP and by applying some if condition to be specific on just the search page

if(arg(0) == "search" &amp;&amp; arg(1) == "site") {

$variables['quantity'] = 5; 

}


These two lines did the magic !!!