How to install Searchanise on Magento 2

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:

  1. Back up your database.
  2. Enable maintenance mode:
    bin/magento maintenance:enable

Install the extension using CLI

Steps:

    1. Download the Searchanise Smart Search Autocomplete extension’s archive from the Commerce Marketplace.
    2. 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.
    3. Execute the following command in the root Magento’s directory to register the extension:
      1. For a default or development Magento mode:
        php bin/magento setup:upgrade
      2. For a production Magento mode::
        php bin/magento setup:upgrade 
        
        php bin/magento setup:di:compile 
        php bin/magento setup:static-content:deploy
    4. Verify that the extension is installed correctly.

That’s it. The extension is installed.

Install the extension using Composer

Steps:

  1. Get the Searchanise Smart Search Autocomplete extension from the Commerce Marketplace.
  2. 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
  3. Enter your authentication keys – replace <public-key> and <private-key> in the auth.json file.
  4. Install the extension executing the following command:
    composer require searchanise/search-autocomplete
  5. Register the extension executing the following command:
    1. For a default or development Magento mode:
      php bin/magento setup:upgrade
    2. For a production Magento mode:
      php bin/magento setup:upgrade 
      php bin/magento setup:di:compile 
      php bin/magento setup:static-content:deploy
  6. 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:

  1. To verify that the extension is installed correctly, run the following command:
    bin/magento module:status
  2. 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.

Enjoying your experience with Searchanise?

We’d appreciate it if you could take some time to leave a review.

Updated on March 10, 2022

Was this article helpful?

Related Articles

Back to top