PHPackages                             smile/module-elasticsuite-targetrule - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. smile/module-elasticsuite-targetrule

ActiveMagento2-module

smile/module-elasticsuite-targetrule
====================================

Smile Elastic Suite - TargetRule Module

1.4.1(5y ago)367.5k↓40.9%2[1 issues](https://github.com/Smile-SA/magento2-module-elasticsuite-targetrule/issues)OSL-3.0PHP

Since Apr 3Pushed 5y ago8 watchersCompare

[ Source](https://github.com/Smile-SA/magento2-module-elasticsuite-targetrule)[ Packagist](https://packagist.org/packages/smile/module-elasticsuite-targetrule)[ RSS](/packages/smile-module-elasticsuite-targetrule/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (4)Versions (13)Used By (0)

ElasticSuite TargetRules
------------------------

[](#elasticsuite-targetrules)

This module is a plugin for [ElasticSuite](https://github.com/Smile-SA/elasticsuite).

It allows to manage Magento2 Enterprise Edition Target Rules via Elasticsearch queries.

### Benefits

[](#benefits)

- Since Magento EE 2.1 and the Staging appearance, TargetRules are reported as broken : [magento/magento2#7354](https://github.com/magento/magento2/issues/7354)

Using our module will make them work again since we do not rely on the Database tables for retrieving products matching a rule.

- Performances : Magento will basically generate many rows in the association table handling relation between products and rules (which rule should be used for a given product, and which product will match conditions of a rule).

This could lead to massive performances issues when you have a large catalog.

We overcome this problem by [percolating](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/search-percolate.html) the rules condition as Elasticsearch queries. This allow to find quickly which product is matching a given rule by just testing the product with the percolator.

Once the rules matching a product are retrieved by the Percolator, we process converting on the fly the TargetRule conditions to an Elasticsearch query, allowing us to match quickly the products that can be displayed by the rule, without even using the Database for complex filtering.

### Compatibility Matrix

[](#compatibility-matrix)

Since Magento did change the way they store rules (from serialized string to json) between 2.1 and 2.2, please ensure to use the proper version of the module for your Magento version :

Magento VersionVersion of this module to useMagento 2.0.\* EENOT SUPPORTEDMagento 2.1.\* EE[Latest 1.1.x release](https://github.com/Smile-SA/magento2-module-elasticsuite-targetrule/releases/tag/1.1.0)Magento 2.2.\* EE[Latest 1.2.x release](https://github.com/Smile-SA/magento2-module-elasticsuite-targetrule/releases/tag/1.2.0)Magento 2.3.\* EE[Latest 1.4.x release](https://github.com/Smile-SA/magento2-module-elasticsuite-targetrule/releases/tag/1.4.1)### Requirements

[](#requirements)

The module requires :

- [ElasticSuite](https://github.com/Smile-SA/elasticsuite) &gt; 2.3.\*
- Magento2 Enterprise Edition (since the TargetRules are only available with the EE Edition)

### How to use

[](#how-to-use)

1. Install the module via Composer :

`composer require smile/module-elasticsuite-targetrule`

2. Enable it

`bin/magento module:enable Smile_ElasticsuiteTargetRule`

3. Install the module and rebuild the DI cache

`bin/magento setup:upgrade`

4. Process a full reindex of catalogsearch index to reindex the Percolator data

`bin/magento index:reindex catalogsearch_fulltext`

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 54.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~113 days

Recently: every ~37 days

Total

12

Last Release

2086d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c4859b63b960878ef37185d533dbd629247859679dfcdf465259d6a4a488ee7?d=identicon)[romainruaud](/maintainers/romainruaud)

![](https://www.gravatar.com/avatar/53fd29100f3b7087742b99c75f58c5488b95a3858d68636f3ad6d3d8b5f91168?d=identicon)[rbayet](/maintainers/rbayet)

---

Top Contributors

[![rbayet](https://avatars.githubusercontent.com/u/2353374?v=4)](https://github.com/rbayet "rbayet (30 commits)")[![romainruaud](https://avatars.githubusercontent.com/u/15340849?v=4)](https://github.com/romainruaud "romainruaud (25 commits)")

---

Tags

magento2elasticsuitetargetrule

### Embed Badge

![Health badge](/badges/smile-module-elasticsuite-targetrule/health.svg)

```
[![Health](https://phpackages.com/badges/smile-module-elasticsuite-targetrule/health.svg)](https://phpackages.com/packages/smile-module-elasticsuite-targetrule)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[smile/module-elasticsuite-cms-search

Smile Elasticsuite - Cms Pages Search Module for Smile Elasticsuite.

25916.7k1](/packages/smile-module-elasticsuite-cms-search)[smile/elasticsuite-for-retailer

Smile ElasticSuite for Retailers - Magento2 toolkit for Retailers : Store Locator, Availability and Prices per store, etc...

18235.4k](/packages/smile-elasticsuite-for-retailer)[smile/module-elasticsuite-rating

Smile ElasticSuite - Rating search module.

1492.1k2](/packages/smile-module-elasticsuite-rating)[smile/module-custom-entity-product-link

Smile - Custom Entity Product link Module

3266.6k1](/packages/smile-module-custom-entity-product-link)[sehrling/elasticsuite-ghost-cleaner

Magento 2 module to delete ghost indices automatically for the Smile Elasticsuite module

1789.0k](/packages/sehrling-elasticsuite-ghost-cleaner)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
