[TYPO3] Indexed search - wrong result and page count
Martin.Kutschker at n0spam-blackbox.net
Tue Sep 26 17:59:20 CEST 2006
Tomas Mrozek schrieb:
> Searching for "indexed search" on www.typo3.org:
> Page 1 - Displaying results 1 to 10 out of 665
> Page 2 - Displaying results 11 to 20 out of 682
> Page 3 - Displaying results 21 to 30 out of 671
> Page 57 - Displaying results 561 to 568 out of 568
> Hmmm, isn't that strange?
Yes. I think that the indexed search counts the pages as it displays them.
Unfortunately the page access restrictions are done rather late in the
process, ie they are done when it tries to get the next 10 pages. So
depending on how many pages it has to skip to fetch 10 you get a different
number of total pages.
I think the reason was to avoid doing the costly access permission check on
pages you don't ever browse. But of course it should somehow remember how
many pages already have been skipped so the number is at least going
More information about the TYPO3-english