laluciole/elasticsearch-driver
Composer 安装命令:
composer require laluciole/elasticsearch-driver
包简介
ElasticSearch Statamic driver
README 文档
README
ElasticSearch driver for Statamic
This addon add's an Elasticsearch driver to Statamic builtin search system.
About ElasticSearch
Features
- Compatibility with both cloud and self-hosted ElasticSearch engine.
- Ability to index collections, assets, taxonomies and users (like default search), but also assets content for specific file formats like PDF, XML, etc. Build with Elastic Attachment processor.
Compatibility
Statamic versions: [Statamic 6.0+]
ElasticSearch versions: From [ElasticSearch 8.19.0]
Installation and Setup
How to Install
You can install this addon via Composer:
composer require laluciole/elasticsearch-driver
How to Use
First, you need to declare the driver in config/statamic/search.php, to define the connection properties for your Elasticsearch server.
'elasticsearch' => [ 'hosts' => ['http://localhost:9200'], 'apikey' => env('ELASTICSEARCH_API_KEY', 'YOUR_API_KEY'), ]
Next, you need to configure new indexes using the addon. Indexes are configured in config/statamic/search.php and uses the standard Statamic index configuration.
Here's an entry in indexes for the pages collection:
'public' => [ 'driver' => 'ElasticSearch', 'searchables' => 'collection:pages', 'fields' => ['title', 'description', 'content'], ],
You can add more arguments, like :
'settings' => [ 'assetscharlimit' => 100000, ],
TODO : settings list
If you use Bard fields, please use the Laluciole\ElasticsearchDriver\elastic\SearchTransformers\BardTransformer::class transformer class.
/!\ This is a commercial addon
You can use it for free while in development, but requires a license to use on a live site. Learn more or buy a license on The Statamic Marketplace!
Contributions
If you have any ideas on how to improve this add-on, please create an issue on Github and we'll try to analyze all suggestions as soon as possible.
laluciole/elasticsearch-driver 适用场景与选型建议
laluciole/elasticsearch-driver 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 laluciole/elasticsearch-driver 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 laluciole/elasticsearch-driver 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2026-03-21