Skip to content
Symfony2 Bundle that expose Elasticsearch official client configuration
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DependencyInjection
Resources/config
Services
Tests
.coveralls.yml
.gitignore
.travis.yml
LICENSE.md
OpenClassroomsElasticsearchBundle.php
README.md
composer.json
phpunit.xml.dist

README.md

ElasticsearchBundle

Build Status Coverage Status SensioLabsInsight

Symfony2 Bundle that expose Elasticsearch official client configuration

Installation

This bundle can be installed using composer:

composer require openclassrooms/use-case-bundle or by adding the package to the composer.json file directly.

{
    "require": {
        "openclassrooms/elasticsearch-bundle": "*"
    }
}

After the package has been installed, add the bundle to the AppKernel.php file:

// in AppKernel::registerBundles()
    $bundles = array(
        // ...
        new OpenClassrooms\Bundle\ElasticsearchBundle\OpenClassroomsElasticsearchBundle(),
        // ...
);

Configuration

Add the elasticsearch hosts to the config.yml

open_classrooms_elasticsearch:
    clients:
        client_name:
            hosts :
                - host
                - 127.0.0.1
        second_client_name:
            hosts :
                - second-host
You can’t perform that action at this time.