erlementovich/reindexer-bundle

Reindexer 的 Symfony 集成 (https://github.com/Restream/reindexer)

安装次数: 2,797

依赖项: 0

建议者: 0

安全: 0

星标: 1

关注者: 2

分支: 1

开放问题: 0

类型:symfony-bundle

1.0.0 2024-04-09 14:37 UTC

README

pik-reindexer

Reindexer 是一个可嵌入的、内存中的、面向文档的数据库,具有高级查询构建器接口。Reindexer 的目标是提供具有复杂查询的快速搜索。在 Restream,我们对 Elasticsearch 感到不满意,因此创建了 Reindexer 作为更高效的替代方案。核心是用 C++ 编写的,应用级 API 是 Go。

Reindexer SDK for Symfony

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

这是用于 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