erlementovich / reindexer-bundle
Reindexer 的 Symfony 集成 (https://github.com/Restream/reindexer)
1.0.0
2024-04-09 14:37 UTC
Requires
- php: >=8.0
- smolevich/reindexer-client: ^2.0
- symfony/framework-bundle: ^6.0 || ^7.0
Requires (Dev)
- phpstan/phpstan: ^1.10
- symfony/yaml: ^6.0 || ^7.0
- symplify/easy-coding-standard: ^12.1
This package is auto-updated.
Last update: 2024-09-09 15:34:07 UTC
README
Reindexer 是一个可嵌入的、内存中的、面向文档的数据库,具有高级查询构建器接口。Reindexer 的目标是提供具有复杂查询的快速搜索。在 Restream,我们对 Elasticsearch 感到不满意,因此创建了 Reindexer 作为更高效的替代方案。核心是用 C++ 编写的,应用级 API 是 Go。
Reindexer SDK for Symfony
这是用于 Reindexer 的 Symfony SDK。
安装
要安装 SDK,您需要在项目中使用 Composer。有关安装方法,请参阅 文档。
composer require erlementovich/reindexer-bundle
如果您的项目不使用 Symfony Flex,则需要在 config/bundles.php
中手动添加以下内容
<?php return [ // other bundles here Pik\\Bundle\\ReindexerBundle\\ReindexerBundle::class => ['all' => true], ];
配置
Reindexer 客户端可以在 config/packages/pik_reindexer.yaml
中进行配置。
pik_reindexer: clients: first: url: 'http://url' dbname: 'firstdbname' auth: user: example_user password: 12345 api_class: App\Reindexer\Api second: url: 'http://url' dbname: 'seconddbname' # More clients here