Basically, when any route is not found then by default Magento redirects to the 404 pages. But as we know the characteristics of Magento it allows customization and Magento 2 merchants can add their custom noRoute handler. Like the 404 pages as a no-route page, you can redirect it to a search page.
Attachment 15560
Steps to Redirect 404🚫 Page Found To Search Page🔎: https://magecomp.com/blog/redirect-4...o-search-page/