chaplean / elasticsearch-bundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started With Chaplean Bundle

Prerequisites

This version of the bundle requires Symfony 3.4+.

Installation

1. Composer

composer require chaplean/elasticsearch-bundle

2. AppKernel.php

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:

<?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>

About


Languages

Language:PHP 98.3%Language:Dockerfile 1.7%