To do this you'll need to recompile the Algolia bundle files, which are included within the Magento plugin, to use the latest version of InstantSearch. This can be done by following the steps below (you may need a developer to assist with this):
- Clone the algoliasearch-extensions-bundle repository
- On the branch 'ISv4' open
package.json
- Set InstantSearch to the latest version:
instantsearch.js: ^4.x.x
- Set the algoliasearch-helper to the required version:
"algoliasearch-helper": "^3.x.x"
- Run
npm run build
to generate the new Algolia bundle files - In the directory
vendor/algolia/algoliasearch-magento-2/view/frontend/web/internals
replace thealgoliaBundle.min.js
andalgoliaBundle.min.js.map
files with the ones you just generated