suilven / silverstripe-manticore-search
使用 Manticore 搜索 SilverStripe
1.0.6
2020-11-23 19:26 UTC
Requires
- php: ~7.1
- manticoresoftware/manticoresearch-php: dev-master
- silverstripe/cms: ^4
- suilven/freetextsearch: ^1
Requires (Dev)
- ergebnis/composer-normalize: ^2.5
- php-parallel-lint/php-console-highlighter: ^0.5.0
- php-parallel-lint/php-parallel-lint: ^1.2
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: ^0.12.25
- phpstan/phpstan-strict-rules: ^0.12.2
- phpunit/phpunit: ^5.7
- slevomat/coding-standard: ^6.3
- dev-main
- dev-master
- 4.6.x-dev
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dependabot/npm_and_yarn/blamer-1.0.4
- dev-CI4
- dev-CI2
- dev-upgrade202111
- dev-IMPLEMENT_FACETS
- dev-SIMILAR_IN_CONTROLLER
- dev-SIMILARITY
- dev-FIX_TESTS
- dev-FACETS
- dev-LINKS
- dev-MISSING_FIELDS
- dev-INTERACT_WITH_FREETEXTSEARCH
- dev-INTERATE_WITH_FREETEXTSEARCH
- dev-FIX_CONSTRAINTS
- dev-PSALM
This package is auto-updated.
Last update: 2024-09-21 19:20:51 UTC
README
使用 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.1
的 9308
端口上。要覆盖此设置,请添加一个类似于以下内容的配置文件
--- 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
贡献
请参阅 CONTRIBUTING 和 CODE_OF_CONDUCT 以获取详细信息。
安全
如果您发现任何安全相关的问题,请通过电子邮件 gordon.b.anderson@gmail.com 而不是使用问题跟踪器。
鸣谢
许可
MIT 许可证 (MIT)。有关更多信息,请参阅 许可文件