Elastica for Laravel 4
, (*1)
This is a Laravel 4 Service Provider for the Elastica Elasticsearch Client, (*2)
Installation
Require laravel-elastica in composer., (*3)
composer require srtfisher/laravel-elastica:0.*
Add it to your providers in config/app.php
, (*4)
'Srtfisher\LaravelElastica\LaravelElasticaServiceProvider'
Add it to your aliases:, (*5)
'Es' => 'Srtfisher\LaravelElastica\LaravelElasticaFacade'
Okay, you would be good to go., (*6)
Configuration
You can use the default configuration to connect to your localhost:9200
server.
Or you could publish the configuration and change the server., (*7)
$ php artisan config:publish srtfisher/laravel-elastica
The configuration will be passed to the client constructor. Information on Elastica
configuration can be found at http://elastica.io/getting-started/installation.html., (*8)