Bug #93494
closed
Not possible to define limit for live search
Added by Torben Hansen almost 4 years ago.
Updated about 2 years ago.
Description
Although the TYPO3 live search has a setter named setLimitCount
, this function is never used to set the max. amount of search results in the live search, so the limit is currently hardcoded to 5 results in \TYPO3\CMS\Backend\Search\LiveSearch\LiveSearch
It should be possible by configuration to override the limit.
Hi Torben, how did you imagine the configuration? I implemented a test with a PSR14 event and was able to manipulate the QueryBuilder object. Of course, this cannot be further configured for the pure editor, but the complete LiveSearch can only be controlled by integrators anyway => "@internal This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API."
So we could improve livesearch a bit with v11 and through events. Can you think of any other settings that you would like to control?
I could still imagine manipulating the entire search result at the end.
Currently the max. amount of records to show is the only configurable option I could think of. But a PSR-14 event to manipulate the searchresult would also be great.
- Status changed from New to Under Review
Hi Torben, thx for your answer. I just push the WIP patch for the QueryBuilderEvent. Maybe we can adjust/push the bigger approach in #92008 to have more possibilities in the LiveSearch.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
- Related to Feature #88992: Add "makeSearchStringConstraints" hook for LiveSearch added
Also available in: Atom
PDF