openclassrooms / elasticsearch-bundle
Symfony2 Bundle for Elasticsearch
Package info
github.com/OpenClassrooms/ElasticsearchBundle
Type:symfony-bundle
pkg:composer/openclassrooms/elasticsearch-bundle
dev-master / 1.0.x-dev
2015-02-09 06:10 UTC
Requires
- php: >=5.3.9
- elasticsearch/elasticsearch: ~1.0
- symfony/config: ~2.1
- symfony/dependency-injection: ~2.1
- symfony/http-kernel: ~2.1
Requires (Dev)
- phpunit/phpunit: ~3.7
- satooshi/php-coveralls: dev-master
This package is auto-updated.
Last update: 2026-02-07 02:59:03 UTC
README
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