Since May 1st, 2024, Apple requires all iOS apps to include a privacy manifest.
For more details, see Privacy Manifest.
Set Searcher shouldTriggerSearchForQuery property
All the Searcher implementations such as HitsSearcher and FacetSearcher provide the shouldTriggerSearchForQuery closure which defines the boolean condition for triggering a search operation.
By default has a nil value so the search will be triggered on each search() function call.
The closure blocking searches for empty queries should look as follows:
Swift