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

pwolanin’s picture

Status: Active » Fixed

check the latest version, we now have:

  $query->addParam('start', $query->page * $query->getParam('rows'));

so you can now set $query->page in the alter hook.

Daemon_Byte’s picture

Not quite as good but it will sort my needs at least thanks :)

Status: Fixed » Closed (fixed)

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