chaplean/elasticsearch-bundle

可分叉的基础包

安装: 156

依赖: 0

建议者: 0

安全性: 0

星标: 0

关注者: 1

分叉: 0

开放问题: 0

类型:symfony-bundle

v1.0.0 2018-12-03 15:27 UTC

This package is auto-updated.

Last update: 2024-09-10 07:17:13 UTC


README

先决条件

本版捆绑包需要 Symfony 3.4+。

安装

1. Composer

composer require chaplean/elasticsearch-bundle

2. AppKernel.php

然后,通过将捆绑包添加到项目中的 app/AppKernel.php 文件中注册的捆绑包列表中,启用该捆绑包

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Chaplean\Bundle\ElasticsearchBundle\ChapleanElasticsearchBundle(),
        ];

        // ...
    }

    // ...
}

3. config.yml

chaplean_elasticsearch:
    indexes:
        <key>: <index_name>