Issue Feature Closed

#73626numberOfResults should be configurable and report overflow

Daniel Neugebauer 02/23/16, 15:18 updated 10/17/17, 23:24

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.

Reviews 1