private function sliceResult(SolrResponse $result)
    {
        $pageSize = $this->getParamsBuilder()->getPageSize();
        $firstItemNumber = ($this->getParamsBuilder()->getCurrentPage() - 1) * $pageSize;
        $result->slice($firstItemNumber, $pageSize);
        return $result;
    }
private function sliceResult(SolrResponse $result)
    {
        $pageSize = $this->getParamsBuilder()->getPageSize();
        $firstItemNumber = ($this->getParamsBuilder()->getCurrentPage() - 1) * $pageSize;
        $result->slice($firstItemNumber, $pageSize);
        return $result;
    }
private function sliceResult ( SolrResponse $ result ) { $ pageSize = $ this -> getParamsBuilder ( ) -> getPageSize ( ) ; $ firstItemNumber = ( $ this -> getParamsBuilder ( ) -> getCurrentPage ( ) - 1 ) * $ pageSize ; $ result -> slice ( $ firstItemNumber , $ pageSize ) ; return $ result ; }
Remove all but last page from multipage result

@param SolrResponse $result
@return SolrResponse
Remove all but last page from multipage result