madewithlove/elasticsearcher-laravel

此包已废弃,不再维护。未建议替代包。

Laravel 的 Elasticsearcher 提供者

0.5.1 2017-02-03 15:10 UTC

This package is not auto-updated.

Last update: 2022-09-30 11:25:48 UTC


README

此包允许更轻松地实现 madewithlove/elasticsearcher 包。更多关于它们的 文档 信息。

安装

  1. 通过 composer 安装最新版本很简单

    composer require madewithlove/elasticsearcher-laravel
    
  2. 更新 config/app.php 以注册提供者

    # Add `Madewithlove\ElasticSearcherLaravel\ServiceProvider` to the `providers` array
    'providers' => array(
    		...
    		Madewithlove\ElasticSearcherLaravel\ServiceProvider::class,
    )
  3. 发布配置文件 config/elasticsearcher.php

    php artisan vendor:publish --provider="Madewithlove\ElasticSearcherLaravel\ServiceProvider"
    

使用

配置

您可以使用 config/elasticsearcher.php 来配置 Elasticsearcher。

控制台

php artisan search:create-index <index-name>