Closed (fixed)
Project:
Apache Solr Search
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2012 at 17:00 UTC
Updated:
17 Feb 2012 at 09:40 UTC
You are setting the start parameter using this code
$query->addParam('start', $page * $query->getParam('rows'));
but it is 5 lines after
drupal_alter('apachesolr_query', $query);
Which makes it impossible to alter. Can it be moved so it is set before the alter is called?
Comments
Comment #1
pwolanin commentedcheck the latest version, we now have:
so you can now set $query->page in the alter hook.
Comment #2
Daemon_Byte commentedNot quite as good but it will sort my needs at least thanks :)