### Installing ElasticSuite 2.3.x for Magento 2.1.x Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/README.md This command installs ElasticSuite version 2.3.x, compatible with Magento 2.1.x. It supports both Elasticsearch 2.x and 5.x. This version is no longer actively maintained. ```Shell composer require smile/elasticsuite ~2.3.0 ``` -------------------------------- ### Installing ElasticSuite 2.6.x for Magento 2.2.x Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/README.md This command installs ElasticSuite version 2.6.x, suitable for Magento 2.2.x installations. It is compatible with Elasticsearch 5.x and 6.x. This version is no longer actively maintained. ```Shell composer require smile/elasticsuite ~2.6.0 ``` -------------------------------- ### Installing ElasticSuite 2.1.x for Magento 2.0.x Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/README.md This command installs ElasticSuite version 2.1.x, specifically designed for Magento 2.0.x projects. It requires Elasticsearch 2.x. Note that this version is no longer actively maintained. ```Shell composer require smile/elasticsuite ~2.1.0 ``` -------------------------------- ### Installing ElasticSuite 2.10.x for Magento 2.4.1 to 2.4.5 Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/README.md This command installs ElasticSuite version 2.10.x, recommended for Magento versions from 2.4.1 up to 2.4.5. It supports Elasticsearch 6.x and 7.x, and OpenSearch 1.x. This version is actively maintained. ```Shell composer require smile/elasticsuite ~2.10.13 ``` -------------------------------- ### Installing ElasticSuite 2.8.x for Magento <2.3.5 Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/README.md This command installs ElasticSuite version 2.8.x, recommended for Magento versions older than 2.3.5. It is compatible with Elasticsearch 5.x and 6.x. This version is no longer actively maintained. ```Shell composer require smile/elasticsuite ~2.8.0 ``` -------------------------------- ### Installing ElasticSuite 2.11.x for Magento 2.4.6 to 2.4.7 Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/README.md This command installs ElasticSuite version 2.11.x, suitable for Magento versions from 2.4.6 up to 2.4.7. It supports Elasticsearch 7.x and 8.x, and OpenSearch 1.x and 2.x. This version is actively maintained. ```Shell composer require smile/elasticsuite ~2.11.0 ``` -------------------------------- ### Installing ElasticSuite 2.10.1 for Magento 2.4.0 Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/README.md This command installs the specific ElasticSuite version 2.10.1, designed for Magento 2.4.0. It supports Elasticsearch 6.x and 7.x. This version is no longer actively maintained. ```Shell composer require smile/elasticsuite 2.10.1 ``` -------------------------------- ### Installing ElasticSuite 2.9.x for Magento >=2.3.5 Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/README.md This command installs ElasticSuite version 2.9.x, suitable for Magento versions 2.3.5 and newer. It supports Elasticsearch 6.x and 7.x. This version is no longer actively maintained. ```Shell composer require smile/elasticsuite ~2.9.0 ``` -------------------------------- ### Installing ElasticSuite 2.11.x for Magento 2.4.8+ Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/README.md This command installs ElasticSuite version 2.11.x, specifically 2.11.13 or higher, for Magento versions 2.4.8 and above. It supports Elasticsearch 7.x and 8.x, and OpenSearch 1.x and 2.x. This version is actively maintained. ```Shell composer require smile/elasticsuite ~2.11.13 ``` -------------------------------- ### Installing ElasticSuite 2.8.4 for Magento <2.3.2 Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/README.md This command installs the specific ElasticSuite version 2.8.4, intended for Magento versions older than 2.3.2. It supports Elasticsearch 5.x and 6.x. This version is no longer actively maintained. ```Shell composer require smile/elasticsuite 2.8.4 ``` -------------------------------- ### Installing ElasticSuite 2.10.x with OpenSearch 2 for Magento 2.4.4 to 2.4.5 Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/README.md This command installs ElasticSuite version 2.10.x, specifically 2.10.27 or higher, providing OpenSearch 2 support for Magento versions from 2.4.4 up to 2.4.5. It is compatible with Elasticsearch 6.x and 7.x, and OpenSearch 1.x and 2.x. This version is actively maintained. ```Shell composer require smile/elasticsuite ~2.10.27 ``` -------------------------------- ### Displaying Product Price with EJS in Elasticsuite Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/src/module-elasticsuite-catalog/view/frontend/web/template/autocomplete/product.html This EJS snippet outputs the `price` property from the `data` object. It uses the escaped output tag `<%=`, which means the content will be HTML-escaped before rendering. This is generally safer for displaying user-generated or potentially untrusted content to prevent XSS attacks. ```EJS <%= data.price %> ``` -------------------------------- ### Displaying Product Title with EJS in Elasticsuite Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/src/module-elasticsuite-catalog/view/frontend/web/template/autocomplete/product.html This EJS snippet outputs the `title` property from the `data` object. The unescaped output tag `<%-` is used, which means the content will be rendered directly without HTML escaping, suitable for displaying raw text or HTML content. ```EJS <%- data.title %> ``` -------------------------------- ### Displaying Image URL with EJS in Elasticsuite Source: https://github.com/smile-sa/elasticsuite/blob/2.11.x/src/module-elasticsuite-catalog/view/frontend/web/template/autocomplete/product.html This EJS snippet outputs the `image` property from the `data` object. It uses the unescaped output tag `<%-` which is suitable for HTML attributes like `src` where the content is expected to be a URL and should not be HTML-escaped. ```EJS <%- data.image %> ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.