[TYPO3-core] RFC: Bug 4470: indexed search pagebrowser shows wrong numbers
Michael Stucki
michael at typo3.org
Tue Jan 23 23:29:01 CET 2007
This is a SVN patch request.
Problem:
The Indexed Search plugin usually finds the number of search results by
counting all results of the database query, and then walking through all of
them, doing a check if the user is really allowed to display this result.
If he had no access, this match will be subtracted from the result.
(This can be controlled using the "show.forbiddenRecords" property, btw.)
However, the usual scenario is that indexed search counts these results only
up to the page that is displayed, and then stops. This is reasonable because
the difference of the result count is usually just a minor one. However, one
may be surprised why indexed_search shows a different result number at every
result page.
The rule is: The closer he gets to the last page of the result browser, the
more precise the counter will be.
Solution:
Add a new property to force exact counting, which simply means that indexed
search checks permissions for _every_ search record, not only up to the
current page.
Documentation changes for Indexed Search manual:
Property: exact_count
Type: boolean
Description:
Force permission checking for every record. Otherwise, records are only
checked up to the current result page. This will cause a slowdown of your
website search, but the results counter will work precisely therefor.
Branches:
Trunk only
- michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_4470.diff
Type: text/x-diff
Size: 2749 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070123/018602b5/attachment.bin
More information about the TYPO3-team-core
mailing list