smile / module-elasticsuite-cms-search
Smile Elasticsuite - Cms Pages Search Module for Smile Elasticsuite.
Installs: 705 688
Dependents: 1
Suggesters: 0
Security: 0
Stars: 26
Watchers: 9
Forks: 26
Open Issues: 1
Type:magento2-module
Requires
- 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.11.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-05 15:31:36 UTC
README
This module is a plugin for 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 ?
Requirements
The module requires :
- ElasticSuite > 2.1.*
How to use
- Install the module via Composer :
composer require smile/module-elasticsuite-cms-search
- Enable it
bin/magento module:enable Smile_ElasticsuiteCms
- Install the module and rebuild the DI cache
bin/magento setup:upgrade
- 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
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"
}
}