Skip to main content
The Algolia AI Search & Discovery extension for Adobe Commerce and Magento Open Source elevates the search experience of your store. It replaces the default search with a menu and a dynamic search results page that updates with products and categories in real time.

Before you begin

Ensure you have the following tools and accounts ready:
  • A Magento Open Source 2.4.x or Adobe Commerce 2.4.x store.
  • An Algolia account. If you don’t have one, create a new account for free. When signing up, select a data center closest to the data center of your Magento installation. This ensures better performance.
    You can use Algolia AI Search & Discovery with Algolia’s Grow or Premium plans, but some features are only available in the Premium plan.
  • PHP version 8.2 to 8.4. For more information, see the System requirements in the Adobe Commerce documentation.
  • Composer version 2.
  • Algolia AI Search & Discovery extension. You can install the extension with Composer or from the Adobe Commerce Marketplace.
    On Windows, use PowerShell, not Command Prompt, and ensure PHP and Composer are available in your PATH.
    • Composer (production or staging)
    • Composer (development or local)
    • Marketplace
    composer require algolia/algoliasearch-magento-2
    php bin/magento module:enable Algolia_AlgoliaSearch
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy
    php bin/magento cache:flush
    

Quickstart

Connect your store to Algolia and run the initial indexing to sync your catalog.
1

Configuration

  1. Go to the API Keys page in the Algolia dashboard to find your credentials:
    • Application ID
    • Search API key
    • Admin API key
  2. In the Admin panel of your Magento project, go to Stores > Algolia Search > Credentials and Basic Setup to open the configuration page for Algolia. Open the Algolia Search configuration menu from the sidebar of the Magento Admin panel
  3. Enter your Algolia credentials and choose a name for the Index Name Prefix. Add your Algolia application ID, Admin API key, Search API key and a prefix for index names into the setup form.
  4. Click Save Config at the top right to save your configuration.
2

Indexing

Start the indexing process to copy the data from your Magento store to Algolia. To do this, run the following command from the root of your Magento project:
php bin/magento algolia:reindex:all

Use multiple application IDs

Starting with version 3.15.0, the Algolia AI Search & Discovery extension lets you use different application IDs for each website in your Magento store. For example, if your store includes website A and website B, you can connect each to a separate Algolia application. To do this:
  1. In the default configuration, enter the credentials for application A.
  2. Select website B, clear the Use default option, and enter the credentials for application B.
  3. Clear the cache.
Each website is now indexed into its corresponding Algolia application. The frontend retrieves data from the configured application for each website.
Ensure each application has access to the Algolia features you’re using.

See also