Getting started

Create an Algolia account

  1. Create your Algolia accout. The sign-up wizard will guide you through Algolia’s onboarding process. Pay extra attention to choosing your Algolia datacenter. Select the one which is the closest to your datacenter.
  2. Once you are logged into dashboard, get your Algolia credentials from the “Credentials” left-menu.
Sign up form
Algolia's sign up form

Install the extension

Install the extension via Composer:

$ 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

Configure Algolia credentials

When you have the extension installed, navigate to Stores > Configuration > Algolia Search administration panel.
There locate Credentials & Setup tab and configure your Algolia credentials:

Configuration
Extension's basic information configurations

Initial indexing

Force the re-indexing of all sections you want to synchronize with Algolia. In your console run command:

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

This command will trigger reindexing on all your content.

Congratulations! You just installed Algolia extension to your Magento 2 store!