Redirect what's in the algolia rules

In the documentation, I only saw the redirect is done through search terms (native magento). Is there any way I can apply the redirects created in algolia dashboard (Rules)? Can I do it in hooks.js? How?

Thanks!