承接 sl0wik/laravel-scout-elasticsearch-driver 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sl0wik/laravel-scout-elasticsearch-driver

Composer 安装命令:

composer require sl0wik/laravel-scout-elasticsearch-driver

包简介

Elasticsearch Driver for Laravel Scout with multi-index support.

README 文档

README

Software License

This is the Elasticsearch driver for Laravel Scout with multiple indexes support.

Package is based on tamayo/laravel-scout-elastic, and created to replace depeceated types, with Index per document type solution.

Contents

Installation

composer require sl0wik/laravel-scout-elasticsearch-driver

Add the Scout service provider and the package service provider in your app.php config:

// config/app.php
'providers' => [
    ...
    Laravel\Scout\ScoutServiceProvider::class,
    ...
    ScoutEngines\Elasticsearch\ElasticsearchProvider::class,
],

Setting up Elasticsearch configuration

After you've published the Laravel Scout package configuration update config/scout.php:

    'driver' => env('SCOUT_DRIVER', 'elasticsearch'),
...
    'elasticsearch' => [
        'hosts' => [
            env('ELASTICSEARCH_HOST', 'http://localhost'),
        ],
    ],
...

Migration

If you are migrating from ErickTamayo/laravel-scout-elastic, keep in mind that instead of config('scout.elasticsearch.index') this package is using searchableAs() method to get index name. By default it will return model config('scout.prefix').$this->getTable();. Your new data will be stored under different indexes so you will need to reindex everything.

Usage

Now you can use Laravel Scout as described in the official documentation

Credits

License

The MIT License (MIT).

统计信息

  • 总下载量: 7.28k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 237
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固