Searching common words give many results creating in the page footer search a huge number of numbers navigation menu (1*2*3*4*5*6*7*8*9* … next › last » ), in some cases, with 1.000.000+ search results it generate, with 10 results for page a 100.000+ numbers menu causing slow page generation time.

Is it possible to limit the solr query to give only 1000 results so that the last search page numbers will be max 100?

Comments

ircresource’s picture

Version: 6.x-2.0-beta5 » 6.x-1.5
WoozyDuck’s picture

I also have this question

pwolanin’s picture

Status: Active » Fixed

You are printing every page link in the footer? That's not standard in Drupal core, so you must have another module that's doing it?

However, there is no option in Solr itself to limit the number of possible pages returned.
http://wiki.apache.org/solr/CommonQueryParameters

You could potentially limit it via a bit of custom code mucking with the pager variables. Look at function apachesolr_process_response()

You could call function apachesolr_pager_init() again e.g. in hook_apachesolr_process_results(). In that hook implementation call apachesolr_static_response_cache() to get the response and check the numFound.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.