Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openclassrooms/elasticsearchbundle
Symfony2 Bundle that expose Elasticsearch official client configuration
https://github.com/openclassrooms/elasticsearchbundle
Last synced: 3 days ago
JSON representation
Symfony2 Bundle that expose Elasticsearch official client configuration
- Host: GitHub
- URL: https://github.com/openclassrooms/elasticsearchbundle
- Owner: OpenClassrooms
- License: mit
- Created: 2014-08-09T16:42:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-09T06:10:49.000Z (almost 10 years ago)
- Last Synced: 2024-04-26T07:22:39.627Z (7 months ago)
- Language: PHP
- Size: 164 KB
- Stars: 0
- Watchers: 27
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
ElasticsearchBundle
===================
[![Build Status](https://travis-ci.org/OpenClassrooms/ElasticsearchBundle.svg?branch=master)](https://travis-ci.org/OpenClassrooms/ElasticsearchBundle)
[![Coverage Status](https://img.shields.io/coveralls/OpenClassrooms/ElasticsearchBundle.svg)](https://coveralls.io/r/OpenClassrooms/ElasticsearchBundle?branch=master)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/dd489bfe-98bf-484f-816f-830fe7319780/mini.png)](https://insight.sensiolabs.com/projects/dd489bfe-98bf-484f-816f-830fe7319780)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.```json
{
"require": {
"openclassrooms/elasticsearch-bundle": "*"
}
}
```After the package has been installed, add the bundle to the AppKernel.php file:
```php
// in AppKernel::registerBundles()
$bundles = array(
// ...
new OpenClassrooms\Bundle\ElasticsearchBundle\OpenClassroomsElasticsearchBundle(),
// ...
);
```## Configuration
Add the elasticsearch hosts to the config.yml``` yml
open_classrooms_elasticsearch:
clients:
client_name:
hosts :
- host
- 127.0.0.1
second_client_name:
hosts :
- second-host```