[TYPO3] Fw: Wrong page counting in Indexed Search

Peter Ison typo3 at martlets.co.uk
Tue Apr 8 13:49:35 CEST 2008


Hi,

Bernie Pfister (Pixelsound Web Design) wrote:

> 
> Problem:
> When searching for the term 'journal' indexed_search first says 
> "Displaying results 1 to 10 out of 11".
> 
> But on page 2 of the search results there are no results and it says: 
> "Displaying results 11 to 10 out of 10".

I came across this problem, and to fix it I removed the following two lines at around 
line 596 of ./typo3/sysext/indexed_search/pi/class.tx_indexedsearch.php :
  // This may lead to a problem: If the result check is not stopped here, 
  the search will take longer. However the result counter will not filter 
  out grouped cHashes/pHashes that were not processed yet.
  if (($c+1) > ($pointer+1)*$this->piVars['results'])     break;
Removing the above line ensures that all the duplicates are removed from the count
but it also means that processing will then take a bit longer.

Regards,

Peter Ison


More information about the TYPO3-english mailing list