bodeezy/laravel-elastica

Laravel 4的Elastica服务提供者

0.1 2014-10-09 23:07 UTC

This package is not auto-updated.

Last update: 2024-09-20 19:50:32 UTC


README

Build Status

这是一个Elastica Elasticsearch客户端的Laravel 4服务提供者

安装

在composer中需要安装laravel-elastica。

composer require srtfisher/laravel-elastica:0.*

将其添加到config/app.php中的提供者中

'bodeezy\LaravelElastica\LaravelElasticaServiceProvider'

将其添加到别名中

'Ef' => 'bodeezy\LaravelElastica\LaravelElasticaFacade'

好了,您就可以继续了。

配置

您可以使用默认配置连接到您的localhost:9200服务器。或者,您可以发布配置并更改服务器。

$ php artisan config:publish bodeezy/laravel-elastica

配置将被传递给客户端构造函数。有关Elastica配置的信息,请参阅http://elastica.io/getting-started/installation.html