Project

General

Profile

Actions

Bug #15990

closed

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

Added by Simon Loesing about 18 years ago. Updated over 5 years ago.

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

0%

Estimated time:
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)


Files

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

Updated by Dmitry Dulepov about 14 years ago

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

Actions #2

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF