silverstripe/silverstripe-forager-fluent
最新稳定版本:1.0.1
Composer 安装命令:
composer require silverstripe/silverstripe-forager-fluent
包简介
Fluent (translations) support for silverstripe/silverstripe-forager
README 文档
README
Support for the fluent module.
This module sets the Locale context for indexing operations. The core assumption is that one index has content from one locale. I does this with IndexDataContextProvider implementations to set the Locale context for indexing operations. Refer to the index context documentation for more information.
Install with composer require silverstripe/forager-fluent.
To configure add the fluent context and a locale property to your index configurations:
SilverStripe\Forager\Service\IndexConfiguration: indexes: main: context: fluent locale: en_NZ includeClasses: ... mi: context: fluent locale: mi_NZ includeClasses: ...
This will use the default fluent context created by this module to set the locale. It will also use the LiveIndexDataContext from the forager module as seen in the configuration below:
--- Name: forager-fluent-context --- SilverStripe\Core\Injector\Injector: SilverStripe\Forager\Service\IndexData: properties: contexts: fluent: SilverstripeForagerLiveIndexDataContext: '%$SilverStripe\Forager\Service\LiveIndexDataContext' SilverstripeForagerLocaleIndexDataContext: '%$SilverStripe\ForagerFluent\Service\LocaleIndexDataContext'
You can customise this context by overriding it in yaml or providing a new custom index context implementation.
Search service extension
This module will replace the SearchServiceExtension provided by the forager module. The replacement extension will create a job for each locale (and therefore index) an object has a localisation for.
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2025-09-11