Skip to content
Browse files

Merge pull request #158 from yoye/master

Update total hits count when paginate with filters
  • Loading branch information...
2 parents b376f2c + 41b0249 commit 46804a32c822b906a10f4ca944924b2bdd6d17fa @richardmiller richardmiller committed Sep 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Paginator/RawPaginatorAdapter.php
View
2 Paginator/RawPaginatorAdapter.php
@@ -65,6 +65,6 @@ public function getResults($offset, $itemCountPerPage)
*/
public function getTotalHits()
{
- return $this->searchable->count($this->query);
+ return $this->searchable->search($this->query)->getTotalHits();
}
}

0 comments on commit 46804a3

Please sign in to comment.
Something went wrong with that request. Please try again.