This is a service provider for Silex which makes access to Elasticsearch available through Elastica.
Set up the dependency on this package using Composer. Once you have a Silex application skeleton you can register the service provider and set Elastica options:
$app->register(new EasyBib\Service\Elastica\ElasticaServiceProvider(), array(
'elastica.client_options' => array(
'host' => 'localhost',
'port' => 9200,
),
));
The full set of options is available on the Elastica documentation.
- PHP >= 5.3.2
- Elastica >= 0.90.2
The code is available under the 2 Clause BSD license.