ajshort/silverstripe-elastica — pull request #2 by axyr (2013-10-01 14:05:02+00:00)
Title: add getTotalItems() and fix limit method so PaginatedList works

Currently we can't pass Totalitems to PaginatedList() from Elastica\ResultSet->getTotalHits();

Example:
$result = ResultList::create($index, $query);
$result->limit(10,(int)$this->request->getVar('start'));
$list = new PaginatedList($result);
$list->setTotalItems($result->getTotalItems());