Home

Awesome

ElasticSuite TargetRules

This module is a plugin for ElasticSuite.

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

Benefits

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

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

We overcome this problem by percolating 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

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 use
Magento 2.0.* EENOT SUPPORTED
Magento 2.1.* EELatest 1.1.x release
Magento 2.2.* EELatest 1.2.x release
Magento 2.3.* EELatest 1.4.x release

Requirements

The module requires :

How to use

  1. Install the module via Composer :

composer require smile/module-elasticsuite-targetrule

  1. Enable it

bin/magento module:enable Smile_ElasticsuiteTargetRule

  1. Install the module and rebuild the DI cache

bin/magento setup:upgrade

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

bin/magento index:reindex catalogsearch_fulltext