Please note that this Support article contains frontend customizations via modifying the legacy Algolia template files, which are deprecated and unsupported by the Algolia Support Team.
For more information, please review this Support article - "Why is modifying Algolia template files for customizations not supported?"
Implementing recent searches in Shopify will require some development work.
To achieve you'll need to customize the assets/algolia_autocomplete.js.liquid file and follow the implementation guidance here: Adding recent searches