There are two ways to install the Searchanise extension in your Magento 2 store: using CLI or via Composer.
Before the installation, you may want to:
- Back up your database.
- Enable maintenance mode:
bin/magento maintenance:enable
Install the extension using CLI
Steps:
-
- Download the Searchanise Smart Search Autocomplete extension’s archive from the Commerce Marketplace.
- Extract the archive to the following folder: <magento2-dir>/app/code/Searchanise/SearchAutocomplete. By default, this folder is absent, so you need to create it first.
- Execute the following command in the root Magento’s directory to register the extension:
- For a default or development Magento mode:
php bin/magento setup:upgrade
- For a production Magento mode::
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
- For a default or development Magento mode:
- Verify that the extension is installed correctly.
That’s it. The extension is installed.
Install the extension using Composer
Steps:
- Get the Searchanise Smart Search Autocomplete extension from the Commerce Marketplace.
- Create the
auth.json
file in your Magento project using the following command if it hasn’t been created yet:cp auth.json.sample auth.json
- Enter your authentication keys – replace
<public-key>
and<private-key>
in theauth.json
file. - Install the extension executing the following command:
composer require searchanise/search-autocomplete
- Register the extension executing the following command:
- For a default or development Magento mode:
php bin/magento setup:upgrade
- For a production Magento mode:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
- For a default or development Magento mode:
- Verify that the extension is installed correctly.
That’s it. The extension is installed.
You can also follow the guidelines of Magento documentation, to install the extension this way.
Verify the extension
Steps:
- To verify that the extension is installed correctly, run the following command:
bin/magento module:status
- Look for the extension under “List of disabled modules”. If you’ve found it there, it is disabled. Enable it and clear static view files executing the following command:
bin/magento module:enable Searchanise_SearchAutocomplete --clear-static-content
That’s it. You can now configure and use the extension.
We’d appreciate it if you could take some time to leave a review.