Bug #15990

Error in Result Processing lead to wrong result count and false paging.

Added by Simon Loesing over 13 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2006-04-05
Due date:
% Done:

0%

TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The Functions getResultRows() gets the search result rows / data from database and returns it as data in an array.

The database query works fine, whereas the following data processing is not correct.

While looping over all results, we have a counter which breaks the loop when ($pointer+1)*$this->piVars['results'] is reached.

If this happens not every page is checked for validity which can lead to a wrong result count and thus an uncorrect number of pages.

Solution: comment out the break statement on line 597 in the class.tx_indexedsearch.php. (see Attached file)

N.B. The solution is perhaps a Performance issue, but actually I haven't a better solution.

(issue imported from #M3145)

class.tx_indexedsearch.php View (91.1 KB) Administrator Admin, 2006-04-05 20:46

History

#1 Updated by Dmitry Dulepov over 9 years ago

Use search.exactCount=1 in TS setup to avoid this break statement.

#2 Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF