Magento has a feature called Search Terms which provides automatic redirects to an internal/external URL when the user enters a specific query.
Though it requires customization of your front-end, you could also leverage an Algolia rule for redirects. The rule returns custom data containing your redirect URL, which you can retrieve in your front-end to redirect the user to this URL.