Hi,

Pagination is not working in 7.x version, function apachesolr_do_query, is not accepting as second parameter the page, it must be added in the query prior to call it.

This is the code to modifie in apachesolr_views_query.inc:

- list($final_query, $response) = apachesolr_do_query($query, $this->pager->current_page);
+
+ $query->page = $this->pager->current_page;
+ list($final_query, $response) = apachesolr_do_query($query);

i send a patch.

Best

CommentFileSizeAuthor
apachesolr_views_pagination.diff890 bytesdavid.gil

Comments

rjbrown99’s picture

Status: Active » Needs review

Patch here, changing status.

becw’s picture

Status: Needs review » Reviewed & tested by the community

This patch works and is required for correct pagination.

shenzhuxi’s picture

Confirm works.
Should be committed.

dstuart’s picture

Status: Reviewed & tested by the community » Fixed

Merged into dev

Status: Fixed » Closed (fixed)

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