Integrations / Platforms / Magento 2 / Quick Start

To get started using Algolia in your Magento installation, follow the steps in this video or on the page below.

Installation

There are two possible ways to install the extension:

  1. Through composer
  2. Through Magento Marketplace

Composer

With composer installed, run the following commands:

$
$
$
$
composer require algolia/algoliasearch-magento-2
php bin/magento module:enable Algolia_AlgoliaSearch
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Magento Marketplace

Navigate to the Magento Marketplace to get the extension and follow the instructions to install.

If you run into an error about missing dependencies while installing or upgrading through the Marketplace, we recommend running composer update. This ensures that all dependencies are resolved.

Magento 2.4 compatibility

The Magento 2.4 release introduced several major changes, including the removal of the MySQL search engine option.

To be compatible with Magento version 2.4, our extension (starting from version 3.x) doesn’t include back-end rendering features that rely on the MySQL search adapter classes.

Legacy versions (v1.x and v2.x) of the extension aren’t compatible with Magento 2.4 and EOL of these legacy branches is scheduled for end of December 2020.

If you are running Magento 2.4, you must install version 3.x of the extension to ensure compatibility.

Configuration

Before Algolia can be used with Magento, an Algolia account is needed. With the account, it’s possible to configure the Magento extension to work properly.

Algolia account

An account can be created in the sign-up wizard.

You can only use Algolia for Magento 2 with a paid or trial plan. For more information on the 14-day free trial, see the pricing page.

Pay attention while picking a data center during the sign-up. For performance reasons, it’s best to pick the one closest to the data center of your Magento installation.

Magento settings

To configure the Magento extension, you will need the following Algolia credentials:

You can find these credentials on the Algolia Dashboard, on the API Keys page from the menu.

In the administration section of your Magento project, navigate to Stores > Configuration > Algolia Search and fill in the form in the Credentials & Setup tab with all the information required.

Basic information configurations

Indexing

With the extension configured, the data in your Magento installation should be pushed to Algolia for the first time by a process called indexing. To accomplish this, run the following command in the command line, from the root of your Magento project.

$
php bin/magento indexer:reindex algolia_products algolia_categories algolia_pages algolia_suggestions algolia_additional_sections

Did you find this page helpful?