Actions
Feature #73626
closednumberOfResults should be configurable and report overflow
Status:
Closed
Priority:
Should have
Assignee:
Category:
Indexed Search
Target version:
Start date:
2016-02-23
Due date:
% Done:
100%
Estimated time:
PHP Version:
Tags:
Complexity:
medium
Sprint Focus:
On Location Sprint
Description
The patch for TYPO3-CORE-SA-2016-008 limits the number of search results to a fixed value of 100 without a chance to override it. That change restricts indexed_search to use a paged browser which may not be desirable on all websites (some websites need to show all results on one page without a page browser). As there is no way of configuring the upper limit, increasing the number of search results on one page is now only possible by manually patching TYPO3 Core.
I therefore propose the following changes:
- The upper limit should be configurable, preferably via Setup/Constant TS. If that's not possible, it should at least be configurable via extension configuration or similar means.
- If more results exist (can be checked by querying the DB for n+1 results, true if n is exceeded) a configurable message should be shown ("too many hits, some results are not shown, try to be more specific").
- It should be possible to disable frontend limit configuration altogether so, if no FE selection of the number of results per page is desired, only a fixed, BE/template configured value is used instead.
As the security patch broke/limited functionality in 6.2, at least the configurable limit should be introduced to 6.2 as well to restore former operation.
Actions