dev-master
9999999-devElasticsearch Module for Zend Framework
BSD-3-Clause
The Requires
elasticsearch zf2 client
Elasticsearch Module for Zend Framework
As easy as it can be with Composer, just run the following command :, (*1)
php <composer.phar> require myprysm/elasticsearch-module dev-master
Or add this line to your composer.json file in the require section :, (*2)
"myprysm/elasticsearch-module": "dev-master"
Then update your composer dependencies, (*3)
php <composer.phar> update
First add the module to your application's requirements :, (*4)
In the file application.config.php, in the module section, add an "Elasticsearch" entry, (*5)
All the options provided by the official Elasticsearch PHP API are supported. For more informations about Elasticsearch client configuration can be found on the official elasticsearch guide, (*6)
The full list of configurations is accessible here, (*7)
A client instance can easily be retrieved through service manager :, (*8)
$client = $serviceManager->get("Elasticsearch\Client")
For more informations about the use of the PHP Elasticsearch client, get a look to the official documentation, (*9)
Elasticsearch Module for Zend Framework
BSD-3-Clause
elasticsearch zf2 client