Download the PHP package jibe84/elasticsearch-second-bundle without Composer
On this page you can find all versions of the php package jibe84/elasticsearch-second-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jibe84/elasticsearch-second-bundle
More information about jibe84/elasticsearch-second-bundle
Files in jibe84/elasticsearch-second-bundle
Package elasticsearch-second-bundle
Short Description Symfony2 Bundle on top of elasticsearch/elasticsearch-php, copy of m6web/elasticsearch-bundle
License MIT
Informations about the package elasticsearch-second-bundle
ElasticsearchSecondBundle
Integration of the Elasticsearch official PHP client within a Symfony Project.
Copy of M6Web/ElasticsearchBundle.
Features
This bundle creates one or more Elasticsearch client services from settings defined in the application configuration.
Usage
Installation
You must first add the bundle to your composer.json:
Then register the bundle in your AppKernel class:
Configuration
In your config.yml, you can configure one or more Elasticsearch clients:
From this configuration, the bundle will create two services :
m6web_elasticsearch.client.my_clientthat will connect to two Elasticsearch instances:localhoston port 9200 andother_hoston port 9201m6web_elasticsearch.client.my_other_clientthat will connect to one Elasticsearch instances:other_serveron port 9200
It will also create m6web_elasticsearch.client.default which is an alias for m6web_elasticsearch.client.my_client
Additional configuration
Each client can have additional configuration parameters that will be used to instantiate the \Elasticsearch\Client. Ex:
Events
The bundle dispatches \M6Web\Bundle\ElasticsearchSecondBundle\EventDispatcher\ElasticsearchEvent events containing various information about the Elasticsearch requests.
Events are fired with the name m6web.elasticsearch.
Tests
You can launch the unit tests using:
License
ElasticsearchSecondBundle is licensed under the MIT license.