Integrations / Platforms / Magento 2 / Quick Start
Feb. 18, 2019

Quick Start

To get started using Algolia in your Magento installation, just 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.

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.

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:

These credentials can be found 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?