# smile/module-elasticsuite-cms-search

> Smile Elasticsuite - Cms Pages Search Module for Smile Elasticsuite.

`composer require smile/module-elasticsuite-cms-search`

Canonical URL: https://packagento.com/smile/module-elasticsuite-cms-search

## At a glance

- **Vendor**: smile (https://packagento.com/smile.md)
- **Latest version**: 2.12.0 — released 2026-06-03
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/smile/module-elasticsuite-cms-search and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require smile/module-elasticsuite-cms-search:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Smile Elasticsuite - Cms Pages Search Module for Smile Elasticsuite.

## README

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

It allows to index CMS Pages into the search engine and display them into the autocomplete results, and also on the search result page.

#### ⚠️ Magento versions compatibility :

**Which version should I use ?**

Magento Version                                     | Module Version
----------------------------------------------------|------------------------------------------------------------------------
Magento **2.0.x** Opensource (CE) / Commerce (EE)   |**2.0.x** latest release : ```composer require smile/module-elasticsuite-cms-search ~2.0.0```
Magento **2.1.x** Opensource (CE) / Commerce (EE)   |**2.1.x** latest release : ```composer require smile/module-elasticsuite-cms-search ~2.1.0```
Magento **2.2.x** Opensource (CE) / Commerce (EE)   |**2.1.x** latest release : ```composer require smile/module-elasticsuite-cms-search ~2.1.0```

#### Requirements

The module requires :

- [ElasticSuite](https://github.com/Smile-SA/elasticsuite) > 2.1.*

#### How to use

1. Install the module via Composer :

``` composer require smile/module-elasticsuite-cms-search ```

2. Enable it

``` bin/magento module:enable Smile_ElasticsuiteCms ```

3. Install the module and rebuild the DI cache

``` bin/magento setup:upgrade ```

4. Process a full reindex of the CMS Page search index

``` bin/magento index:reindex elasticsuite_cms_page_fulltext ```


#### How to configure

> Stores > Configuration > Elasticsuite > CMS settings > Settings
* Max result : Maximum number of results to display in result block.

> Stores > Configuration > Elasticsuite > Autocomplete > Cms page Autocomplete
* Max size : Maximum number of cms pages to display in autocomplete results.

#### Fields indexed

Field               | Type    
--------------------|-----------
page_id             | Integer
title               | Varchar
page_layout         | Varchar
meta_keywords       | Text
meta_description    | Text
identifier          | Integer
content_heading     | Text
content             | Text
creation_time       | DateTime
update_time         | DateTime
is_active           | Integer
sort_order          | Integer
layout_update_xml   | Text
custom_theme        | Integer
custom_root_template| Integer
custom_layout_update| Text
custom_theme_from   | DateTime
custom_theme_to     | DateTime
meta_title          | Text
is_searchable       | Integer
store_id            | Integer 
   
Index example :
```  
{
    "_index" : "magento2_fr_cms_page_20181024_064926",
    "_type" : "page",
    "_id" : "5",
    "_score" : 1.0,
    "_source" : {
      "page_id" : "5",
      "title" : "About us",
      "page_layout" : "1column",
      "meta_keywords" : "",
      "meta_description" : "",
      "identifier" : "about-us",
      "content_heading" : "About us",
      "content" : "<div class=\"about-info cms-content\">\n      <p class=\"cms-content-important\">With more than 230 stores spanning 43 states and growing, Luma is a nationally recognized active wear manufacturer and retailer. We’re passionate about active lifestyles – and it goes way beyond apparel.</p>\n\n >\n",
      "creation_time" : "2017-03-21 16:59:21",
      "update_time" : "2018-10-24 06:45:28",
      "is_active" : "1",
      "sort_order" : "0",
      "layout_update_xml" : "",
      "custom_theme" : null,
      "custom_root_template" : null,
      "custom_layout_update_xml" : "",
      "custom_theme_from" : null,
      "custom_theme_to" : null,
      "meta_title" : "",
      "is_searchable" : "1",
      "store_id" : "0"
    }
}
```

## Recent Versions

| Version | Released |
|---|---|
| 2.12.0 | 2026-06-03 |
| 2.11.4 | 2026-01-20 |
| 2.10.3 | 2026-01-20 |
| 2.11.3 | 2025-04-25 |
| 2.11.2 | 2024-06-05 |
| 2.10.2 | 2024-06-05 |
| 2.11.1 | 2024-06-05 |
| 2.10.1 | 2024-06-05 |
| 2.2.9 | 2024-06-05 |
| 2.11.0 | 2024-06-05 |

Showing 10 of 27 versions. Full release history on https://packagento.com/smile/module-elasticsuite-cms-search.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | >=103.0.6 |
| magento/magento-composer-installer | * |
| magento/module-backend | >=102.0.6 |
| magento/module-catalog | >=104.0.6 |
| magento/module-catalog-search | >=102.0.6 |
| magento/module-store | >=101.1.6 |
| smile/elasticsuite | ~2.12.0 |

### Require (dev)

| Package | Constraint |
|---|---|
| smile/magento2-smilelab-quality-suite | ^1.0.4 |

## Quality

Latest release (2.12.0) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 62 | 9 errors, 53 warnings (ruleset: Magento2) — 41 auto-fixable with phpcbf |
| PHPMD | Warning | 3 | 3 rule violations (MissingImport:2, UnusedPrivateMethod:1) |
| Cpd | Pass | 0 |  |
| Composer validate | Info | 6 | valid; 6 advisory notes (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 964 | 964 | – | – |
| 2.4.8 | – | 964 | 964 | – |
| 2.4.9 | – | – | 956 | 956 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | N/A | 0 | no resolvable dependency tree to audit — Your requirements could not be resolved to an installable set of packages. Problem 1 |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["smile/module-elasticsuite-cms-search"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

smile is a Magento 2 vendor on Packagento. See https://packagento.com/smile.md for their full catalogue.

