Changeset 25622
- Timestamp:
- 12/19/09 10:42:24 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfLucenePlugin/branches/1.2-Solr/lib/results/sfLucenePager.class.php
r25443 r25622 44 44 $this->results = $lucene_results->toArray(); 45 45 $this->search_parameters = $lucene_results->getRawResult()->sf_lucene_search; 46 47 // compute the page number from the results 48 $limit = $lucene_results->getRawResult()->sf_lucene_search['limit']; 49 50 $start = $this->getResults()->getRawResult()->response->start; 51 52 $this->setPage((int)($start / $limit) + 1); 53 $this->must_reload = false; 54 46 55 47 56 $this->search = $search === null ? $lucene_results->getSearch() : $search; … … 156 165 public function getPage() 157 166 { 167 158 168 return $this->page; 159 169 } … … 174 184 public function getFirstPage() 175 185 { 186 176 187 return 1; 177 188 }