承接 algolia/algoliasearch-magento-2 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

algolia/algoliasearch-magento-2

Composer 安装命令:

composer require algolia/algoliasearch-magento-2

包简介

Algolia Search & Discovery extension for Magento 2

README 文档

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.

Extension versions support

We support the two latest minor versions of our extension (see "Extension Version" column in the compatibility matrix below) :

  • The 2 latest minor versions are maintained with security and critical bug fixes.
  • The latest minor version is maintained with "general" bug fixes as well.

Magento versions support

We support the 2 or 3 latest patch versions of Magento depending on releases overlap (see matrix below):

Extension Version End of Life Magento PHP
v3.7.x 10/10/2023 ~2.3.7||~2.4.5||~2.4.6 ~7.3.0||~7.4.0||~8.1.0||~8.2.0
v3.8.x 3/8/2023 ~2.4.5||~2.4.6 ~7.4.0||~8.1.0||~8.2.0
v3.9.x 10/13/2023 ~2.4.5||~2.4.6 ~7.4.0||~8.1.0||~8.2.0
v3.10.x 12/12/2023 ~2.4.6 ~8.1.0||~8.2.0
v3.11.x 1/26/2024 ~2.4.6 ~8.1.0||~8.2.0
v3.12.x 8/2/2024 ~2.4.6 ~8.1.0||~8.2.0
v3.13.x 4/9/2025 ~2.4.6 ~8.1.0||~8.2.0
v3.14.x 9/1/2025 ~2.4.6||~2.4.7 ~8.1.0||~8.2.0||~8.3.0
v3.15.x 12/1/2025 ~2.4.6||~2.4.7 ~8.1.0||~8.2.0||~8.3.0
v3.16.x 5/15/2026 ~2.4.7||~2.4.8 ~8.2.0||~8.3.0||~8.4.0
v3.17.x N/A ~2.4.7||~2.4.8 ~8.2.0||~8.3.0||~8.4.0
v3.18.0 N/A ~2.4.7||~2.4.8 ~8.2.0||~8.3.0||~8.4.0
>=v3.18.1 N/A ~2.4.7||~2.4.8||~2.4.9 ~8.2.0||~8.3.0||~8.4.0||~8.5.0

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.18.0"

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 reference.

Frontend JavaScript libraries

As of v3.15.x the JavaScript bundle algoliaBundle has been removed as a hard dependency for the Magento extension and will be removed entirely in the next minor release. Libraries can now be swapped independently and loaded via RequireJS.

Knowing the version of each Algolia JavaScript library will help you understand what is available 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.

Extension Version autocomplete.js instantsearch.js search-insights.js recommend-js.js
v3.x 0.38.0* 4.15.0* 1.7.1 NA
v3.9.1 1.6.3* 4.41.0* 1.7.1 1.5.0
v3.10.x 1.6.3* 4.41.0* 1.7.1 1.8.0
v3.11.0 1.6.3* 4.41.0* 2.6.0 1.8.0
v3.13.0 1.6.3* 4.63.0* 2.11.0 1.8.0
v3.14.x 1.6.3* 4.63.0* 2.11.0 1.15.0
v3.15.x 1.17.9 4.77.0 2.17.3 1.16.0
>=v3.16.x 1.18.1 4.78.0 2.17.3 1.16.0
* In earlier versions of the extension, the Autocomplete and InstantSearch libraries were accessible via the algoliaBundle global. This bundle was a prepackaged JavaScript file that contained dependencies for the frontend experience. What was included in this bundle can be seen here: https://github.com/algolia/algoliasearch-extensions-bundle/blob/ISv4/package.json

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

JavaScript bundling

Libraries should be fully compatible with standard JavaScript bundling. If using "advanced bundling" via the RequireJS optimizer it will be necessary to first apply the Babel transpiler to the underlying source code.

A sample transpiler configuration (.babelrc) might look as follows:

{
    "presets": [
        [
            "@babel/preset-env",
            {
                "exclude": ["@babel/plugin-transform-template-literals"]
            }
        ],
        ["minify", { "builtIns": false, "mangle": false }]
    ],
    "comments": false
}

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.

Extension Version API Client Version
v3.x 2.5.1
v3.6.x 3.2.0
v3.11.0 3.3.2
>=v3.14.x 4.x.x

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

Optional Modules

The base extension can be paired with the following companion modules. Each is published as a separate Composer package and can be installed independently based on your store's needs.

MSI compatibility module

algolia/algoliasearch-inventory-magento-2

Enables Algolia indexing compatibility with Magento's Multi-Source Inventory (MSI) system. Install this if your store uses MSI to manage stock across multiple sources (warehouses, physical stores, etc.) and you need Algolia records to reflect aggregated stock status and per-source quantities.

composer require algolia/algoliasearch-inventory-magento-2

Requires base extension >=3.17.3

Search adapter module

algolia/algoliasearch-adapter-magento-2

Registers Algolia as a native Magento search engine backend, enabling server-side rendered category and search-results pages. Install this if you want SEO-friendly, crawler- and LLM-readable product listings, or if you need backend-only search without the InstantSearch JavaScript UI. Can run alongside InstantSearch for hybrid setups (crawlers see server-rendered HTML; shoppers see the client-rendered InstantSearch experience).

composer require algolia/algoliasearch-adapter-magento-2

Requires PHP 8.2+, Magento 2.4+, and base extension ^3.18.

Customization starter module

algolia/algoliasearch-custom-algolia-magento-2

Boilerplate module that demonstrates how to extend the base integration with custom attributes, custom indexing logic, frontend InstantSearch tweaks, and event-driven customizations. Intended as a reference template to fork or copy patterns from rather than to install directly into production. See the Customisation section above for the recommended approach to using this module.

composer require algolia/algoliasearch-custom-algolia-magento-2

Requires base extension ^3.15.0.

Support

For feedback, bug reporting, or unresolved issues with the extension, please visit our Support Center where you can search the knowledge 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 guidelines.

algolia/algoliasearch-magento-2 适用场景与选型建议

algolia/algoliasearch-magento-2 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.9M 次下载、GitHub Stars 达 188, 最近一次更新时间为 2016 年 03 月 29 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 algolia/algoliasearch-magento-2 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 algolia/algoliasearch-magento-2 我们能提供哪些服务?
定制开发 / 二次开发

基于 algolia/algoliasearch-magento-2 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1.9M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 191
  • 点击次数: 16
  • 依赖项目数: 17
  • 推荐数: 0

GitHub 信息

  • Stars: 188
  • Watchers: 71
  • Forks: 170
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-29