Removed an unnecessary fetching of search results when paging

This commit is contained in:
Richard Miller 2011-11-01 17:34:04 +00:00
parent f7c170db10
commit 2682399d7f

View file

@ -50,7 +50,6 @@ class TransformedFinder implements FinderInterface, PaginatedFinderInterface
public function findPaginated($query)
{
$queryObject = Elastica_Query::create($query);
$results = $this->searchable->search($queryObject)->getResults();
$paginatorAdapter = $this->createPaginatorAdapter($queryObject);
return new Pagerfanta($paginatorAdapter);