smile / module-elasticsuite-cms-search
Smile Elasticsuite - Smile Elasticsuite 的 Cms 页面搜索模块。
2.11.2
2024-06-05 14:21 UTC
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-09-05 14:52:34 UTC
README
此模块是ElasticSuite的插件。
它允许将 CMS 页面索引到搜索引擎,并在自动完成结果中显示,以及搜索结果页面。
⚠️ Magento 版本兼容性
我应该使用哪个版本?
要求
此模块需要
- ElasticSuite > 2.1.*
如何使用
- 通过 Composer 安装模块
composer require smile/module-elasticsuite-cms-search
- 启用它
bin/magento module:enable Smile_ElasticsuiteCms
- 安装模块并重建 DI 缓存
bin/magento setup:upgrade
- 处理 CMS 页面搜索索引的全量重新索引
bin/magento index:reindex elasticsuite_cms_page_fulltext
如何配置
商店 > 配置 > Elasticsuite > CMS 设置 > 设置
- 最大结果数:在结果块中显示的最大结果数。
商店 > 配置 > Elasticsuite > 自动完成 > CMS 页面自动完成
- 最大尺寸:在自动完成结果中显示的最大 CMS 页面数。
索引字段
索引示例
{
"_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"
}
}