To get started using Algolia in your Magento installation, just follow the steps in this video or on the page below.
There are two possible ways to install the extension:
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
Navigate to the Magento Marketplace to get the extension and follow the instructions to install.
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.
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.
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.
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