smile / module-elasticsuite-targetrule
Smile Elastic Suite - TargetRule Module
Installs: 57 132
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 11
Forks: 2
Open Issues: 0
Type:magento2-module
Requires
- magento/magento-composer-installer: *
- magento/module-target-rule: >=101.1.0
- smile/elasticsuite: ^2.9.0
Requires (Dev)
README
This module is a plugin for ElasticSuite.
It allows to manage Magento2 Enterprise Edition Target Rules via Elasticsearch queries.
Benefits
- Since Magento EE 2.1 and the Staging appearance, TargetRules are reported as broken : magento/magento2#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 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 :
Requirements
The module requires :
-
ElasticSuite > 2.3.*
-
Magento2 Enterprise Edition (since the TargetRules are only available with the EE Edition)
How to use
- Install the module via Composer :
composer require smile/module-elasticsuite-targetrule
- Enable it
bin/magento module:enable Smile_ElasticsuiteTargetRule
- Install the module and rebuild the DI cache
bin/magento setup:upgrade
- Process a full reindex of catalogsearch index to reindex the Percolator data
bin/magento index:reindex catalogsearch_fulltext