suilven/silverstripe-manticore-search

使用 Manticore 搜索 SilverStripe

安装: 4

依赖: 0

建议者: 1

安全: 0

星星: 4

关注者: 2

分支: 0

开放问题: 1

类型:silverstripe-vendormodule


README

example workflow Scrutinizer Code Quality codecov.io

Latest Stable Version Latest Unstable Version Total Downloads License Monthly Downloads Daily Downloads composer.lock

GitHub Code Size GitHub Repo Size GitHub Last Commit GitHub Activity GitHub Issues

使用 manticoresearch 作为全文搜索引擎,在 SilverStripe 中搜索内容。

安装

PHP

通过 Composer

$ composer require suilven/silverstripe-manticore-search

Manticore Search

适用于多个平台的软件包可用,请参阅 https://manticoresearch.com/downloads/ - 需要 ManticoreSearch PHP 客户端的兼容性,版本 3.5。

或者可以使用 docker 启动一个实例

docker run --name manticore -p 9306:9306 -p 9308:9308 -d manticoresearch/manticore

注意:此配置不包括卷映射,以便备份已索引的数据。

配置

索引

请参阅 https://github.com/gordonbanderson/freetextsearch#configuration

Manticoresearch 特定

默认情况下,manticore 应该在 127.0.0.19308 端口上。要覆盖此设置,请添加一个类似于以下内容的配置文件

---
Name: manticore-my-host
After: manticore
---

Suilven\ManticoreSearch\Service\Client:
  host: 'manticoresearch-manticore'
  port: 19308

使用方法

请参阅 https://github.com/gordonbanderson/freetextsearch#usage

变更日志

有关最近更改的更多信息,请参阅 CHANGELOG

测试

$ vendor/bin/phpunit tests '' flush=1

贡献

请参阅 CONTRIBUTINGCODE_OF_CONDUCT 以获取详细信息。

安全

如果您发现任何安全相关的问题,请通过电子邮件 gordon.b.anderson@gmail.com 而不是使用问题跟踪器。

鸣谢

许可

MIT 许可证 (MIT)。有关更多信息,请参阅 许可文件