algolia/algoliasearch-magento-2

Algolia Search & Discovery extension for Magento 2

Installs: 1 455 186

Dependents: 13

Suggesters: 0

Security: 0

Stars: 173

Watchers: 80

Forks: 165

Type:magento2-module

3.15.0-beta.1 2024-11-15 10:26 UTC

This package is auto-updated.

Last update: 2024-11-22 15:20:50 UTC


README

Latest version Magento 2

PHP

CircleCI

Features

The Algolia extension replaces the default search in Magento Open Source and Adobe Commerce with a robust autocomplete search menu and Instantsearch results page.

This extension replaces the default search of Magento with a typo-tolerant, fast & relevant search experience backed by Algolia. It's based on algoliasearch-client-php, autocomplete.js and instantsearch.js.

  • Autocompletion menu: Provide your entire catalog to End-Users instantly via the dropdown menu, regardless of the number of categories or attributes it contains.

  • Instantsearch results page: Have your search results page, navigation and pagination updated in realtime, after each keystroke.

  • Recommend: Algolia Recommend lets you display recommendations such as "Frequently Bought Together" and "Related Products" features on the product detail page.

Learn more at our official website Adobe Commerce / Magento

Demo

Try the autocomplete and the instantsearch results page on our live demo.

Magento 2.4 compatibility & extension versions End of Life

Magento 2.3 and earlier versions are no longer supported by the Algolia extension.

Version 3.x of our extension is compatible with Magento 2.4. Review the Customisation section to learn more about the differences between our extension versions.

Documentation

Installation

The easiest way to install the extension is to use Composer and follow our getting started guide.

If you would like to stay on a minor version, please upgrade your composer to only accept minor versions. The following example will keep you on the minor version and will update patches automatically.

"algolia/algoliasearch-magento-2": "~3.14.2"

Customisation

The extension uses libraries to help assist with the frontend implementation for autocomplete, instantsearch, and insight features. It also uses the Algolia PHP client to leverage indexing and search methods from the backend. When you approach customisations for either, you have to understand that you are customising the implementation itself and not the components it is based on.

These libraries are here to help add to your customisation but because the extension has already initialised these components, you should use hooks into the area between the extension and the libraries. Please check our Custom Extension for refrence

The Extension JS Bundle

Knowing the version of the library will help you understand what is available in these libraries for you to leverage in terms of customisation. This table will help you determine which documentation to reference when you start working on your customisation.

The autocomplete and instantsearch libraries are accessible in the algoliaBundle global. This bundle is a prepackage javascript file that contains it's dependencies. What is included in this bundle can be seen here:

v3.x latest bundle: https://github.com/algolia/algoliasearch-extensions-bundle/blob/ISv4/package.json

The search-insights.js library is standalone.

Refer to these docs when customising your Algolia Magento extension frontend features:

The Algolia PHP API Client

The extension does most of the heavy lifting when it comes to gathering and preparing the data needed for indexing to Algolia. In terms of interacting with the Algolia Search API, the extension leverages the PHP API Client for backend methods including indexing, configuration, and search queries.

Depending on the extension version you are using, you could have a different PHP API client version powering the extension's backend functionality.

Refer to these docs when customising your Algolia Magento extension backend:

Support

For feedback, bug reporting, or unresolved issues with the extension, please visit our Support Center where you can search the knowldge base and contact the Support team. Please include your Magento version, extension version, application ID, and steps to reproducing your issue. Add additional information like screenshots, screencasts, and error messages to help our team better troubleshoot your issues.

Contributing

To start contributing to the extension follow the contributing guildelines.