srtfisher / laravel-elastica
Laravel 4 Service Provider for Elastica
0.1
2014-10-09 23:07 UTC
Requires
- php: >=5.4.0
- ruflin/elastica: ~1.3.4.0
Requires (Dev)
- orchestra/testbench: ~2.2.1
This package is auto-updated.
Last update: 2024-11-25 07:25:20 UTC
README
This is a Laravel 4 Service Provider for the Elastica Elasticsearch Client
Installation
Require laravel-elastica in composer.
composer require srtfisher/laravel-elastica:0.*
Add it to your providers in config/app.php
'Srtfisher\LaravelElastica\LaravelElasticaServiceProvider'
Add it to your aliases:
'Es' => 'Srtfisher\LaravelElastica\LaravelElasticaFacade'
Okay, you would be good to go.
Configuration
You can use the default configuration to connect to your localhost:9200
server.
Or you could publish the configuration and change the server.
$ 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.